From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0007.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0007.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0007.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0007.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0007.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0007.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0007.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0007.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0007.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0007.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0007.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0014.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0015.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0007.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0007.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0007.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/fded6e70/attachment-0007.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0007.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0007.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0007.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0007.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0007.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0008.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0008.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0008.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0008.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0008.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0008.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0008.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0008.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0008.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0008.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0008.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0016.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0017.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0008.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0008.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0008.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/fded6e70/attachment-0008.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0008.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0008.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0008.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0008.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0008.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0009.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0009.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0009.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0009.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0009.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0009.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0009.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0009.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0009.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0009.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0009.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0018.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0019.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0009.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0009.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0009.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0009.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0009.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0009.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0009.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0009.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0010.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0010.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0010.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0010.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0010.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0010.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0010.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0010.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0010.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0010.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0010.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0020.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0021.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0010.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0010.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0010.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0001.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0010.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0010.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0010.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0010.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0010.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0011.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0011.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0011.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0011.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0011.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0011.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0011.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0011.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0011.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0011.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0011.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0022.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0023.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0011.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0011.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0011.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0002.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0011.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0011.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0011.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0011.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0011.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0012.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0012.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0012.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0012.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0012.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0012.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0012.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0012.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0012.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0012.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0012.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0024.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0025.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0012.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0012.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0012.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0003.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0012.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0012.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0012.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0012.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0012.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0013.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0013.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0013.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0013.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0013.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0013.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0013.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0013.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0013.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0013.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0013.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0026.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0027.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0013.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0013.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0013.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0004.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0013.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0013.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0013.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0013.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0013.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0014.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0014.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0014.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0014.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0014.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0014.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0014.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0014.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0014.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0014.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0014.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0028.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0029.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0014.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0014.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0014.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0005.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0014.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0014.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0014.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0014.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0014.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0015.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0015.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0015.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0015.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0015.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0015.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0015.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0015.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0015.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0015.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0015.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0030.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0031.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0015.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0015.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0015.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0006.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0015.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0015.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0015.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0015.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0015.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0016.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0016.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0016.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0016.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0016.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0016.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0016.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0016.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0016.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0016.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0016.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0032.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0033.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0016.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0016.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0016.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0007.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0016.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0016.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0016.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0016.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0016.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0017.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0017.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0017.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0017.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0017.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0017.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0017.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0017.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0017.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0017.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0017.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0034.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0035.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0017.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0017.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0017.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0008.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0017.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0017.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0017.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0017.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0017.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0018.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0018.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0018.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0018.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0018.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0018.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0018.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0018.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0018.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0018.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0018.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0036.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0037.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0018.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0018.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0018.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0009.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0018.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0018.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0018.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0018.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0018.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0019.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0019.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0019.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0019.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0019.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0019.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0019.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0019.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0019.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0019.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0019.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0038.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0039.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0019.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0019.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0019.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0010.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0019.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0019.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0019.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0019.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0019.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0020.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0020.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0020.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0020.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0020.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0020.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0020.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0020.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0020.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0020.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0020.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0040.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0041.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0020.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0020.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0020.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0011.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0020.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0020.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0020.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0020.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0020.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0021.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0021.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0021.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0021.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0021.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0021.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0021.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0021.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0021.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0021.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0021.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0042.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0043.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0021.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0021.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0021.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0012.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0021.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0021.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0021.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0021.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0021.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0022.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0022.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0022.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0022.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0022.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0022.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0022.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0022.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0022.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0022.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0022.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0044.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0045.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0022.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0022.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0022.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0013.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0022.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0022.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0022.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0022.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0022.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0023.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0023.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0023.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0023.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0023.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0023.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0023.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0023.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0023.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0023.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0023.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0046.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0047.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0023.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0023.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0023.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0014.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0023.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0023.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0023.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0023.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0023.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0024.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0024.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0024.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0024.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0024.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0024.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0024.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0024.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0024.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0024.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0024.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0048.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0049.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0024.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0024.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0024.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0015.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0024.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0024.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0024.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0024.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0024.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0025.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0025.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0025.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0025.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0025.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0025.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0025.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0025.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0025.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0025.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0025.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0050.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0051.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0025.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0025.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0025.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0016.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0025.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0025.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0025.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0025.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0025.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0026.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0026.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0026.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0026.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0026.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0026.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0026.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0026.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0026.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0026.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0026.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0052.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0053.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0026.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0026.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0026.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0017.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0026.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0026.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0026.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0026.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0026.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0027.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0027.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0027.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0027.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0027.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0027.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0027.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0027.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0027.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0027.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0027.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0054.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0055.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0027.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0027.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0027.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0018.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0027.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0027.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0027.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0027.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0027.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0028.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0028.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0028.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0028.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0028.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0028.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0028.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0028.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0028.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0028.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0028.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0056.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0057.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0028.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0028.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0028.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0019.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0028.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0028.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0028.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0028.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0028.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0029.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0029.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0029.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0029.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0029.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0029.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0029.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0029.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0029.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0029.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0029.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0058.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0059.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0029.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0029.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0029.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0020.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0029.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0029.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0029.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0029.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0029.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0030.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0030.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0030.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0030.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0030.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0030.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0030.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0030.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0030.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0030.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0030.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0060.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0061.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0030.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0030.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0030.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0021.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0030.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0030.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0030.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0030.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0030.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid1684-0031.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/hs_err_pid576-0031.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/rxtx-2.1-7pre17.threadfixes.patch-0031.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0031.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0031.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/configure.in-0031.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0031.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0031.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal@inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0031.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0031.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0031.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0062.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0063.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0031.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/RXTXBundle-0031.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/LibLoader-0031.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0022.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/LibLoader.java-0031.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/LibLoader.java-0031.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/LibLoader.java-0031.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/typescript-0031.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0031.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0001.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0032.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0032.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0032.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0032.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0032.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0032.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0032.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0064.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0065.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0032.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0023.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0032.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0002.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0003.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0001.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0033.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0033.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0001.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0033.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0033.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0033.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0033.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0033.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0066.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0067.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0033.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0001.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0001.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0024.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0001.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0001.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0001.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment-0001.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0033.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0004.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0005.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0002.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0034.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0034.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0002.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0034.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0034.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0034.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0034.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0034.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0068.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0069.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0034.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0002.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0002.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0025.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0002.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0002.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0002.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment-0002.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0034.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0006.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0007.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0003.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0035.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0035.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0003.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0035.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0035.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0035.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0035.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0035.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0070.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0071.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0035.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0003.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0003.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0026.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0003.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0003.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0003.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment-0003.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0035.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0008.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0009.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0004.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0036.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0036.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0004.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0036.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0036.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0036.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0036.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0036.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0072.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0073.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0036.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0004.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0004.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0027.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0004.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0004.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0004.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment-0004.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0036.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0010.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0011.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0005.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0037.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0037.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0005.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0037.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0037.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0037.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0037.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0037.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0074.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0075.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0037.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0005.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0005.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0028.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0005.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0005.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0005.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment-0005.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0037.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0012.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0013.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0006.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0038.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0038.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0006.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0038.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0038.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0038.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0038.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0038.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0076.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0077.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0038.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0006.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0006.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0029.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0006.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0006.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0006.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment-0006.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0038.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0014.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0015.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0007.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0039.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0039.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0007.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0039.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0039.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0039.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0039.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0039.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0078.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0079.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0039.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0007.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0007.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0030.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0007.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0007.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0007.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 17:16:55 -0400 Subject: [Rxtx] Bundled In-Reply-To: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> Message-ID: That's what it does use, and it doesn't care about conventions on Mac OS X or Linux, but Windows won't load it unless it ends with .dll. On 25 May 2004, at 14:51, Dmitry Markman wrote: > why not to use System.load function so you don't need to care about > library name conventions From vt at freehold.crocodile.org Tue May 25 23:46:55 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Tue, 25 May 2004 22:46:55 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: <40B42F4F.7070208@freehold.crocodile.org> Trent Jarvi wrote: >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >>>why do you think, comm.jar would disturb 2.1? >>> >>> > >Part of the problem may be rxtx too. comm.jar just wants to >System.load("rxtxSerial"); > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon >what you last installed. Its a symbolic link to >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX >conventions here but you get the idea). So its not really >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the >same JRE. > >This leads to a common problem where people have rxtx 2.1 installed with >comm.jar and then import "javax.comm.*;" in their code. > > Hmm... Is it possible to give the libs different name for different naming conventions, then? Say, librxtxSerial-classic for javax.com and librxtxSerial-gnu for gnu.io? You won't have to drag two releases along in this case - unless javax.comm and gnu.io have deeper differences than I was able to notice. I did have problems with RxTx 2.x, but the code I was trying to use (1-Wire API) was using gnu.io - I decided to give it a try and replace gnu.io with javax.comm. It worked. --vt From taj at www.linux.org.uk Wed May 26 00:54:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 07:54:30 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <40B42F4F.7070208@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: On Tue, 25 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >>>dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > >>>why do you think, comm.jar would disturb 2.1? > >>> > >>> > > > >Part of the problem may be rxtx too. comm.jar just wants to > >System.load("rxtxSerial"); > > > >The filename is the same in rxtx 2.0 and 2.1. What you get depends upon > >what you last installed. Its a symbolic link to > >librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX > >conventions here but you get the idea). So its not really > >possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the > >same JRE. > > > >This leads to a common problem where people have rxtx 2.1 installed with > >comm.jar and then import "javax.comm.*;" in their code. > > > > > Hmm... Is it possible to give the libs different name for different > naming conventions, then? Say, librxtxSerial-classic for javax.com and > librxtxSerial-gnu for gnu.io? You won't have to drag two releases along > in this case - unless javax.comm and gnu.io have deeper differences than > I was able to notice. I did have problems with RxTx 2.x, but the code I > was trying to use (1-Wire API) was using gnu.io - I decided to give it a > try and replace gnu.io with javax.comm. It worked. > Hi Vadim Yes. We need to change the library names so both can be installed at the same time. The other option is having the library in the jar as is being looked at. Libraries in a jar looks the cleanest for end users but also the hardest to coordinate between anything more than OS X, Linux and w32. With the 1-wire. Could you privide more information there? You mention having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which specific libraries had problems which ones worked? Which OS/version and Java vendor/Version was that on? It would be good to at least have this in the mail list archives for people searching. It would also help in finding a solution to the original problem. There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a few more methods but would not typically be touched. You would have to look for them. They just are not available in 2.0 because javax.comm does not have them in class Serial. I suspect you just stumbled into a regression. -- Trent Jarvi taj at www.linux.org.uk From vt at freehold.crocodile.org Wed May 26 01:51:15 2004 From: vt at freehold.crocodile.org (Vadim Tkachenko) Date: Wed, 26 May 2004 00:51:15 -0700 Subject: [Rxtx] (no subject) In-Reply-To: References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> Message-ID: <40B44C73.8050904@freehold.crocodile.org> Trent Jarvi wrote: >On Tue, 25 May 2004, Vadim Tkachenko wrote: > >>Hmm... Is it possible to give the libs different name for different >>naming conventions, then? Say, librxtxSerial-classic for javax.com and >>librxtxSerial-gnu for gnu.io? You won't have to drag two releases along >>in this case - unless javax.comm and gnu.io have deeper differences than >>I was able to notice. I did have problems with RxTx 2.x, but the code I >>was trying to use (1-Wire API) was using gnu.io - I decided to give it a >>try and replace gnu.io with javax.comm. It worked. >> >Yes. We need to change the library names so both can be installed at the >same time. The other option is having the library in the jar as is being >looked at. Libraries in a jar looks the cleanest for end users but also >the hardest to coordinate between anything more than OS X, Linux and w32. > >With the 1-wire. Could you privide more information there? You mention >having problems with 2.X but 2.0 is javax.comm and 2.1 is gnu.io. Which >specific libraries had problems which ones worked? Which OS/version and >Java vendor/Version was that on? > > Oh man, you can't imagine what can of worms you've just opened :) Originally, I was having problems with both 2.0 and 2.1 - basically, the JDK was throwing a core dump in a very predictable timeframe since startup, less than a minute. So I decided to revert back to 1.4.15 - that's the last one that was working for me (and still does), very reliably. Platforms in question were different versions of JDK (I believe 1.3.x and 1.4.x) on two different RedHat boxes: one is 7.3 patched to whatever last security update plus vital tools that I needed, the other is 9.0. Now I have a different problem - RxTx won't compile anymore. Different errors for different versions: 1.4-15 on JDK 1.4.2_03: 00:33:24 root at cube:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.4.2_03/bin/javac -classpath .:/usr/local/src/rxtx-1.4-15:/usr/local/src/rxtx-1.4-15/src:/usr/java/j2sdk1.4.2_03/jre/lib/ext/comm.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java ./src/RXTXPort.java:1271: setEndOfInputChar(byte) in gnu.io.RXTXPort cannot override setEndOfInputChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setEndOfInputChar( byte b ) ^ ./src/RXTXPort.java:1249: getEndOfInputChar() in gnu.io.RXTXPort cannot override getEndOfInputChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getEndOfInputChar( ) ^ ./src/RXTXPort.java:1231: setParityErrorChar(byte) in gnu.io.RXTXPort cannot override setParityErrorChar(byte) in gnu.io.SerialPort; attempting to assign weaker access privileges; was public boolean setParityErrorChar( byte b ) ^ ./src/RXTXPort.java:1207: getParityErrorChar() in gnu.io.RXTXPort cannot override getParityErrorChar() in gnu.io.SerialPort; attempting to assign weaker access privileges; was public int getParityErrorChar( ) ^ Note: ./src/RXTXPort.java uses or overrides a deprecated API. Note: Recompile with -deprecation for details. 4 errors make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 1 1.4-15 on JDK 1.5.0-beta: 00:36:22 root at ghost:/usr/local/src/rxtx-1.4-15$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-1.4-15/ -O ./src/Configure.java ./src/LPRPort.java ./src/RXTXCommDriver.java ./src/RXTXPort.java ./src/RXTXVersion.java Note: * uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-1.4-15/gnu/io/Configure.class] Error 15 2.1-7pre16 on JDK 1.5.0-beta: 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make /usr/java/j2sdk1.5.0/bin/javac -classpath .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Error: No output directory was specified on the command line. Try -help. make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 >There should not be any 'deep' differences between 2.0 and 2.1. 2.1 has a >few more methods but would not typically be touched. You would have to >look for them. They just are not available in 2.0 because javax.comm >does not have them in class Serial. I suspect you just stumbled into a >regression. > Let me put it this way: since RxTx is a vital part of my project, I'd be willing to spend some effort on making it work seamlessly. I've been recently involved in a JNI project, and while I'm nowhere near proficient, I could probably spot more things than I would have been able a few months ago. A few items I would want to pay attention to: - better support for auto* tools - something tells me that it's possible to simplify the stuff that you have there now; - RPM/Deb package support - I've spent a lot of time building RPMs, but now that RedHat is no longer supported, and Fedora is still raw, I'd probably switch to something else (considering SuSe 9.1) and build the package for that; - simpler build - using Ant to deal with Java files and javah worked really good for me. Sorry if I wasn't coherent enough - it's getting pretty late here :) --vt From taj at www.linux.org.uk Wed May 26 08:02:21 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 26 May 2004 15:02:21 +0100 (BST) Subject: [Rxtx] rxtx 2.1-7pre16 on FC2 Linux, Sun JDK 1.5.0-beta In-Reply-To: <40B44C73.8050904@freehold.crocodile.org> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> <40B42F4F.7070208@freehold.crocodile.org> <40B44C73.8050904@freehold.crocodile.org> Message-ID: On Wed, 26 May 2004, Vadim Tkachenko wrote: > Trent Jarvi wrote: > > >On Tue, 25 May 2004, Vadim Tkachenko wrote: > 2.1-7pre16 on JDK 1.5.0-beta: > > 00:32:15 root at ghost:/usr/local/src/rxtx-2.1-7pre16$ make > /usr/java/j2sdk1.5.0/bin/javac -classpath > .::/usr/share/java/jakarta-regexp.jar -d /usr/local/src/rxtx-2.1-7pre16/ > -O /usr/local/src/rxtx-2.1-7pre16/./src/CommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortEnumerator.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortIdentifier.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/CommPortOwnershipListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2C.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/I2CPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/LPRPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/NoSuchPortException.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/ParallelPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/PortInUseException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Raw.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RawPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485PortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/RS485Port.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXCommDriver.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/RXTXVersion.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEvent.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPortEventListener.java > /usr/local/src/rxtx-2.1-7pre16/./src/SerialPort.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnsupportedCommOperationException.java > /usr/local/src/rxtx-2.1-7pre16/./src/UnSupportedLoggerException.java > /usr/local/src/rxtx-2.1-7pre16/./src/Zystem.java > Note: /usr/local/src/rxtx-2.1-7pre16/./src/Configure.java uses or > overrides a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Error: No output directory was specified on the command line. Try -help. > make: *** [/usr/local/src/rxtx-2.1-7pre16/gnu/io/CommDriver.class] Error 15 > I just tried the same compile using the tgz linked on rxtx.org and the compile appears fine. Fedora Core 2, Sun 1.5 beta. Typescript is attached. The /var/ftp/pub/rxtx is the physical directory linked on www.rxtx.org; ftp://jarvi.dsl.frii.com/pub/rxtx/rxtx-2.1-7pre16.tar.gz Maybe something can be spotted. The only environment variable used for Java was the PATH. Fresh install of Java 1.5 beta with not modifications. pre17 compiled also. The classpath is different: .::/usr/share/java/jakarta-regexp.jar vs .: What happens if you unset the classpath? We may need to remove a : from the autobreakage. You could test this by just editing the Makefile. -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: typescript.gz Type: application/x-gzip Size: 2551 bytes Desc: Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040526/f7807efe/attachment-0007.gz From renaud at nentec.de Thu May 27 09:10:20 2004 From: renaud at nentec.de (Fabien Renaud) Date: Thu, 27 May 2004 17:10:20 +0200 Subject: [Rxtx] My app wants sun commapi Message-ID: <40B604DC.3030908@nentec.de> Hello, I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. When I want to run SimpleRead (from sun examples) I have this : java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass0 (ClassLoader.java) at java.lang.ClassLoader.defineClass (ClassLoader.java:179) at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:32) at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) at java.lang.ClassLoader.loadClass (ClassLoader.java:142) I know it?s a basic problem but I don?t know what do. Another question : when are use the .so libs ? Fabien From lingwitt at bellsouth.net Thu May 27 10:43:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 12:43:28 -0400 Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: You cannot use javax.comm with 2.1 The libs are used for hardware specific stuff. Check the archives, because we've discussed bundling the package so as to make it work without installation. I've got more information on that myself, so give me an email. On 27 May 2004, at 11:10, Fabien Renaud wrote: > Another question : when are use the .so libs ? From taj at www.linux.org.uk Thu May 27 19:26:33 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 02:26:33 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B604DC.3030908@nentec.de> References: <40B604DC.3030908@nentec.de> Message-ID: On Thu, 27 May 2004, Fabien Renaud wrote: > Hello, > > I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > When I want to run SimpleRead (from sun examples) I have this : > > java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > at java.security.SecureClassLoader.defineClass > (SecureClassLoader.java:32) > at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > I know it?s a basic problem but I don?t know what do. > > Another question : when are use the .so libs ? > > Hi Fabin As mentioned in a previous post, the version that works in javax.comm is rxtx 2.0. It needs Sun's commapi also. There is a classpathx project that has replaced Sun's commapi and can work with rxtx 2.0 if you are interested in working on it. IE if you want full source code and javax.comm, I'd recommend going that direction. Right now its just the wrapper classes that you would normally download from Sun. Rxtx 2.0 should fall right in though. ant/make/.. files will need work. As long as you have compiled the arm 2.1 native library, maybe you could mail it to me off the list and I could make it available for others to download off rxtx.org. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Thu May 27 21:05:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 27 May 2004 23:05:52 -0400 Subject: [Rxtx] Strange Errors Message-ID: My program was working without errors on Windows until a new internal modem was installed (I don't know the brand). Then I got this whenever I tried to send a command to the modem (I suppose bob compiled the library): Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation completed successfully after which my own error catching took over: Could not send data: class java.io.IOException: Input/output error in writeArray Fortunately, I ate that error, so it did not halt the program. Interestingly, the errors did not change the functioning of the program. It worked as expected. What could have caused this? Thanks. From taj at www.linux.org.uk Thu May 27 21:56:55 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 04:56:55 +0100 (BST) Subject: [Rxtx] Strange Errors In-Reply-To: References: Message-ID: On Thu, 27 May 2004, Herr Witten wrote: > My program was working without errors on Windows until a new internal > modem was installed (I don't know the brand). Then I got this whenever > I tried to send a command to the modem (I suppose bob compiled the > library): > > Error 0x0 at /home/bob/rxtx-devel/src/termios.c<1296>: The operation > completed successfully > > after which my own error catching took over: > > Could not send data: class java.io.IOException: Input/output error in > writeArray > > Fortunately, I ate that error, so it did not halt the program. > Interestingly, the errors did not change the functioning of the > program. It worked as expected. What could have caused this? Thanks. > Hi Herr Looking at the code, the 'YACK()' is telling the truth, the operation copleted successfully. WriteFile() returned nonzero. According to the msdn documents is success. Usually the code flow goes into checking overlapping results until the data has been written. I suspect your modem has a larger buffer and the write completed right away. If you look at line 1296, you will see that the code just needs to be changed to return with success. So its a false error on rxtx's part. -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 01:40:18 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 09:40:18 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> Message-ID: <40B6ECE2.3060102@nentec.de> Hello, I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I still don?t understand how when I write a java application, I can specify that I want to use rxtx. Sorry, but I really don?t understand how works rxtx with java. Trent Jarvi wrote: >On Thu, 27 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>When I want to run SimpleRead (from sun examples) I have this : >> >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >> at java.security.SecureClassLoader.defineClass >>(SecureClassLoader.java:32) >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >> >>I know it?s a basic problem but I don?t know what do. >> >>Another question : when are use the .so libs ? >> >> >> >> > >Hi Fabin > >As mentioned in a previous post, the version that works in javax.comm is >rxtx 2.0. It needs Sun's commapi also. > >There is a classpathx project that has replaced Sun's commapi and can work >with rxtx 2.0 if you are interested in working on it. IE if you want full >source code and javax.comm, I'd recommend going that direction. Right now >its just the wrapper classes that you would normally download from Sun. >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >As long as you have compiled the arm 2.1 native library, maybe you could >mail it to me off the list and I could make it available for others to >download off rxtx.org. > > > From taj at www.linux.org.uk Fri May 28 01:55:38 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 08:55:38 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6ECE2.3060102@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: On Fri, 28 May 2004, Fabien Renaud wrote: > Hello, > > I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > still don?t understand how when I write a java application, I can > specify that I want to use rxtx. > Sorry, but I really don?t understand how works rxtx with java. To use rxtx 2.1 in applications that you write, simply change: import javax.comm.*; to import gnu.io.*; In your application and everything should work. If you require javax.comm and full source, the GNU classpathx project is starting a commapi implementation that rxtx 2.0 can be used in. It requires work though. > > Trent Jarvi wrote: > > >On Thu, 27 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>When I want to run SimpleRead (from sun examples) I have this : > >> > >>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >> at java.security.SecureClassLoader.defineClass > >>(SecureClassLoader.java:32) > >> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >> > >>I know it?s a basic problem but I don?t know what do. > >> > >>Another question : when are use the .so libs ? > >> > >> > >> > >> > > > >Hi Fabin > > > >As mentioned in a previous post, the version that works in javax.comm is > >rxtx 2.0. It needs Sun's commapi also. > > > >There is a classpathx project that has replaced Sun's commapi and can work > >with rxtx 2.0 if you are interested in working on it. IE if you want full > >source code and javax.comm, I'd recommend going that direction. Right now > >its just the wrapper classes that you would normally download from Sun. > >Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > > >As long as you have compiled the arm 2.1 native library, maybe you could > >mail it to me off the list and I could make it available for others to > >download off rxtx.org. > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From renaud at nentec.de Fri May 28 02:22:15 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 10:22:15 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> Message-ID: <40B6F6B7.8070004@nentec.de> Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite and then prog exit : Devel Library ========================================= Native lib Version = RXTX-2.1-7pre16 Java lib Version = RXTX-2.1-7pre16 I?m sorry but with my abilities I cannot help the project :( Fabien Trent Jarvi wrote: >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Hello, >> >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>still don?t understand how when I write a java application, I can >>specify that I want to use rxtx. >>Sorry, but I really don?t understand how works rxtx with java. >> >> > >To use rxtx 2.1 in applications that you write, simply change: > >import javax.comm.*; > > to > >import gnu.io.*; > >In your application and everything should work. > >If you require javax.comm and full source, the GNU classpathx project is >starting a commapi implementation that rxtx 2.0 can be used in. It >requires work though. > > > > >>Trent Jarvi wrote: >> >> >> >>>On Thu, 27 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>When I want to run SimpleRead (from sun examples) I have this : >>>> >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>> at java.security.SecureClassLoader.defineClass >>>>(SecureClassLoader.java:32) >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>> >>>>I know it?s a basic problem but I don?t know what do. >>>> >>>>Another question : when are use the .so libs ? >>>> >>>> >>>> >>>> >>>> >>>> >>>Hi Fabin >>> >>>As mentioned in a previous post, the version that works in javax.comm is >>>rxtx 2.0. It needs Sun's commapi also. >>> >>>There is a classpathx project that has replaced Sun's commapi and can work >>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>source code and javax.comm, I'd recommend going that direction. Right now >>>its just the wrapper classes that you would normally download from Sun. >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>> >>>As long as you have compiled the arm 2.1 native library, maybe you could >>>mail it to me off the list and I could make it available for others to >>>download off rxtx.org. >>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From taj at www.linux.org.uk Fri May 28 02:30:42 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 28 May 2004 09:30:42 +0100 (BST) Subject: [Rxtx] My app wants sun commapi In-Reply-To: <40B6F6B7.8070004@nentec.de> References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: This looks normal. It shows you have the correct libraries and they loaded. The SimpleRead and SimpleWrite applications are not complicated. Did you see a problem? The applications should just write, read and exit. They need to be told the correct port to perform the actions on. On Fri, 28 May 2004, Fabien Renaud wrote: > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > and then prog exit : > > Devel Library > ========================================= > Native lib Version = RXTX-2.1-7pre16 > Java lib Version = RXTX-2.1-7pre16 > > I?m sorry but with my abilities I cannot help the project :( > > Fabien > > > Trent Jarvi wrote: > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > >>Hello, > >> > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > >>still don?t understand how when I write a java application, I can > >>specify that I want to use rxtx. > >>Sorry, but I really don?t understand how works rxtx with java. > >> > >> > > > >To use rxtx 2.1 in applications that you write, simply change: > > > >import javax.comm.*; > > > > to > > > >import gnu.io.*; > > > >In your application and everything should work. > > > >If you require javax.comm and full source, the GNU classpathx project is > >starting a commapi implementation that rxtx 2.0 can be used in. It > >requires work though. > > > > > > > > > >>Trent Jarvi wrote: > >> > >> > >> > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > >>> > >>> > >>> > >>> > >>> > >>>>Hello, > >>>> > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > >>>>When I want to run SimpleRead (from sun examples) I have this : > >>>> > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > >>>> at java.security.SecureClassLoader.defineClass > >>>>(SecureClassLoader.java:32) > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > >>>> > >>>>I know it?s a basic problem but I don?t know what do. > >>>> > >>>>Another question : when are use the .so libs ? > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>Hi Fabin > >>> > >>>As mentioned in a previous post, the version that works in javax.comm is > >>>rxtx 2.0. It needs Sun's commapi also. > >>> > >>>There is a classpathx project that has replaced Sun's commapi and can work > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > >>>source code and javax.comm, I'd recommend going that direction. Right now > >>>its just the wrapper classes that you would normally download from Sun. > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > >>> > >>>As long as you have compiled the arm 2.1 native library, maybe you could > >>>mail it to me off the list and I could make it available for others to > >>>download off rxtx.org. > >>> > >>> > >>> > >>> > >>> > >>_______________________________________________ > >>Rxtx mailing list > >>Rxtx at linuxgrrls.org > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > >> > >> > >> > > > > > > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Fri May 28 02:57:03 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Fri, 28 May 2004 08:57:03 +0000 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <1085734622.4411.0.camel@localhost> u must be root or have permissions to read/write your device. A Sex, 2004-05-28 ?s 08:30, Trent Jarvi escreveu: > This looks normal. It shows you have the correct libraries and they > loaded. The SimpleRead and SimpleWrite applications are not complicated. > Did you see a problem? The applications should just write, read and exit. > > They need to be told the correct port to perform the actions on. > > On Fri, 28 May 2004, Fabien Renaud wrote: > > > Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite > > and then prog exit : > > > > Devel Library > > ========================================= > > Native lib Version = RXTX-2.1-7pre16 > > Java lib Version = RXTX-2.1-7pre16 > > > > I?m sorry but with my abilities I cannot help the project :( > > > > Fabien > > > > > > Trent Jarvi wrote: > > > > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > > > > > > > > > >>Hello, > > >> > > >>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I > > >>still don?t understand how when I write a java application, I can > > >>specify that I want to use rxtx. > > >>Sorry, but I really don?t understand how works rxtx with java. > > >> > > >> > > > > > >To use rxtx 2.1 in applications that you write, simply change: > > > > > >import javax.comm.*; > > > > > > to > > > > > >import gnu.io.*; > > > > > >In your application and everything should work. > > > > > >If you require javax.comm and full source, the GNU classpathx project is > > >starting a commapi implementation that rxtx 2.0 can be used in. It > > >requires work though. > > > > > > > > > > > > > > >>Trent Jarvi wrote: > > >> > > >> > > >> > > >>>On Thu, 27 May 2004, Fabien Renaud wrote: > > >>> > > >>> > > >>> > > >>> > > >>> > > >>>>Hello, > > >>>> > > >>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. > > >>>>When I want to run SimpleRead (from sun examples) I have this : > > >>>> > > >>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener > > >>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) > > >>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) > > >>>> at java.security.SecureClassLoader.defineClass > > >>>>(SecureClassLoader.java:32) > > >>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) > > >>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) > > >>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > > >>>> > > >>>>I know it?s a basic problem but I don?t know what do. > > >>>> > > >>>>Another question : when are use the .so libs ? > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>Hi Fabin > > >>> > > >>>As mentioned in a previous post, the version that works in javax.comm is > > >>>rxtx 2.0. It needs Sun's commapi also. > > >>> > > >>>There is a classpathx project that has replaced Sun's commapi and can work > > >>>with rxtx 2.0 if you are interested in working on it. IE if you want full > > >>>source code and javax.comm, I'd recommend going that direction. Right now > > >>>its just the wrapper classes that you would normally download from Sun. > > >>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. > > >>> > > >>>As long as you have compiled the arm 2.1 native library, maybe you could > > >>>mail it to me off the list and I could make it available for others to > > >>>download off rxtx.org. > > >>> > > >>> > > >>> > > >>> > > >>> > > >>_______________________________________________ > > >>Rxtx mailing list > > >>Rxtx at linuxgrrls.org > > >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > >> > > >> > > >> > > > > > > > > > > > > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > From renaud at nentec.de Fri May 28 03:04:40 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:40 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700A8.7040803@nentec.de> An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040528/3d2e3974/attachment-0039.html From renaud at nentec.de Fri May 28 03:04:51 2004 From: renaud at nentec.de (Fabien Renaud) Date: Fri, 28 May 2004 11:04:51 +0200 Subject: [Rxtx] My app wants sun commapi In-Reply-To: References: <40B604DC.3030908@nentec.de> <40B6ECE2.3060102@nentec.de> <40B6F6B7.8070004@nentec.de> Message-ID: <40B700B3.4050900@nentec.de> Okay thanks. I have to take another serial port (I?m already using one to communicate with my box) but that should be ok. Thanks for all ;) Trent Jarvi wrote: >This looks normal. It shows you have the correct libraries and they >loaded. The SimpleRead and SimpleWrite applications are not complicated. >Did you see a problem? The applications should just write, read and exit. > >They need to be told the correct port to perform the actions on. > >On Fri, 28 May 2004, Fabien Renaud wrote: > > > >>Ok thanks for the answer. I have now this with SimpleRead/SimpleWrite >>and then prog exit : >> >>Devel Library >>========================================= >>Native lib Version = RXTX-2.1-7pre16 >>Java lib Version = RXTX-2.1-7pre16 >> >>I?m sorry but with my abilities I cannot help the project :( >> >>Fabien >> >> >>Trent Jarvi wrote: >> >> >> >>>On Fri, 28 May 2004, Fabien Renaud wrote: >>> >>> >>> >>> >>> >>>>Hello, >>>> >>>>I don?t want to use Sun?s comm.jar as it?s specified in INSTALL. And I >>>>still don?t understand how when I write a java application, I can >>>>specify that I want to use rxtx. >>>>Sorry, but I really don?t understand how works rxtx with java. >>>> >>>> >>>> >>>> >>>To use rxtx 2.1 in applications that you write, simply change: >>> >>>import javax.comm.*; >>> >>> to >>> >>>import gnu.io.*; >>> >>>In your application and everything should work. >>> >>>If you require javax.comm and full source, the GNU classpathx project is >>>starting a commapi implementation that rxtx 2.0 can be used in. It >>>requires work though. >>> >>> >>> >>> >>> >>> >>>>Trent Jarvi wrote: >>>> >>>> >>>> >>>> >>>> >>>>>On Thu, 27 May 2004, Fabien Renaud wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hello, >>>>>> >>>>>>I have rxtx-2.1-7pre16. I cross compiled it form my arm box with kaffeVM. >>>>>>When I want to run SimpleRead (from sun examples) I have this : >>>>>> >>>>>>java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener >>>>>> at java.lang.ClassLoader.defineClass0 (ClassLoader.java) >>>>>> at java.lang.ClassLoader.defineClass (ClassLoader.java:179) >>>>>> at java.security.SecureClassLoader.defineClass >>>>>>(SecureClassLoader.java:32) >>>>>> at kaffe.lang.AppClassLoader$DirSource.findClass (AppClassLoader.java:81) >>>>>> at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:291) >>>>>> at java.lang.ClassLoader.loadClass (ClassLoader.java:142) >>>>>> >>>>>>I know it?s a basic problem but I don?t know what do. >>>>>> >>>>>>Another question : when are use the .so libs ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Hi Fabin >>>>> >>>>>As mentioned in a previous post, the version that works in javax.comm is >>>>>rxtx 2.0. It needs Sun's commapi also. >>>>> >>>>>There is a classpathx project that has replaced Sun's commapi and can work >>>>>with rxtx 2.0 if you are interested in working on it. IE if you want full >>>>>source code and javax.comm, I'd recommend going that direction. Right now >>>>>its just the wrapper classes that you would normally download from Sun. >>>>>Rxtx 2.0 should fall right in though. ant/make/.. files will need work. >>>>> >>>>>As long as you have compiled the arm 2.1 native library, maybe you could >>>>>mail it to me off the list and I could make it available for others to >>>>>download off rxtx.org. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>_______________________________________________ >>>>Rxtx mailing list >>>>Rxtx at linuxgrrls.org >>>>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>_______________________________________________ >>Rxtx mailing list >>Rxtx at linuxgrrls.org >>http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> >> >> > > > From mringwal at inf.ethz.ch Sat May 1 08:24:48 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Sat, 1 May 2004 16:24:48 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: <4D0736A8-9B7B-11D8-A988-0003936CA678@inf.ethz.ch> On 28.04.2004, at 08:31, Dmitry Markman wrote: > you have to install 1.4.2 javadeveloper package > (on ADC site free) thanks for the hint. and I messed up with different project files, so.. - the rxtx-2.0-pre7 project is missing >> - UnSupportedLoggerException.java >> - Zystem.java - the rxtx-2.1-pre17 project has those files with your absolute paths for >> - UnSupportedLoggerException.java >> - Zystem.java feel free to update the projects files. :) I will try to downgrade my xcode 1.2 back to 1.1 and finish the fink packages soon. matthias From dmarkman at mac.com Sun May 2 22:38:23 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 3 May 2004 00:38:23 -0400 Subject: [Rxtx] Re: Building RXTX on XCode... In-Reply-To: References: Message-ID: Hi, Dima is OK I don't understand what exactly your problem is what RXTX package are you working on? (2.0.X or 2.1.X) from were did you get sources what aliases are broken 2.0.X I just tested what I have and I found that 2 files from XCode project had absolute path I fixed the problem 2.0.X project has long standing javah issue that I don't know how to fix so I created headers with CodeWarrior and put headers into the Header folder one of the file was out dated so I fixed it all changes I committed to the CVS 2.1.X the same as 2.0 2 java files had absolute paths I committed changes otherwise i was able to build 2.0/2.1 projects without problem so you can update your cvs tree On May 2, 2004, at 11:47 PM, Dave Sopchak wrote: > Hi Dmitri (Dima? Priviet!) > > I'm trying to build the RXTX libraries with XCode on Mac OS X 10.3.3. > I figured before I got too involved I'd ask you if you've done it or > could give me some pointers. > > I imported the PB project into XCode, which went OK. There were some > files that were misplaced (some of the links were static ones to your > desktop), so I chased them down and added them to the project. The > RXTXcomm target builds fine, but I ran into trouble with the > librxtxSerial.jnilib. I had to put in a new header path (to the 1.4.1 > headers) because some of the aliases in the JavaVMFramework seem > broken in 10.3.3. It builds OK now, but I haven't yet gotten the app > I'm porting over to work right, so I'm not yet sure if my trick > worked. > > Thanks for any and all insight into this if you could spare it, and > thanks for the work you've done so far! > > Dave > > _______________________________________ > The sun never sets on the search for darker skies. > > Dmitry Markman From ricardo.trindade at emation.pt Mon May 3 02:34:22 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 3 May 2004 09:34:22 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Any news on this ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Ricardo Trindade Enviada: quinta-feira, 1 de Abril de 2004 17:40 Para: Java RXTX discussion Assunto: [Rxtx] stable release Hi, Any news on a new rxtx release ? thanks Ricardo _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From moritz.gmelin at gmx.de Tue May 11 03:41:18 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Tue, 11 May 2004 11:41:18 +0200 Subject: [Rxtx] Core-Dump Message-ID: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Hi, can anybody help me with that ? A client of mine sent me those log files. He is running an RXTX-2.1.7pre17 Application on Windows XP using Java1.4.2_04. It happens sometimes. I'll try to reproduce it here. Greetings Moritz -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1684.log Type: application/octet-stream Size: 4884 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0016.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid576.log Type: application/octet-stream Size: 4979 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040511/d76172de/attachment-0017.obj From danrogers at ucsd.edu Thu May 6 15:15:16 2004 From: danrogers at ucsd.edu (Daniel Rogers) Date: Thu, 06 May 2004 14:15:16 -0700 Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 Message-ID: <409AAAE4.8040504@ucsd.edu> Hi, I have a serial port application which I cannot convince the serial port event thread to die. At somepoint in the application I call: (port is object of class SerialPort) port.close(); port.removeEventListener(); port = null; And even after all my threads exit, the event thread is still persisting. How do I gracefully ask it to stop? Also, I'm not on the list, so please CC me on the response. Thank you. -- Daniel Rogers University of California, San Diego Programmer/Analyst II Department of Radiology danrogers at ucsd.edu Voice: 619-543-5250 From taj at www.linux.org.uk Tue May 11 12:00:11 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:00:11 +0100 (BST) Subject: [Rxtx] Event-Thread not dying on win32 2.1pre17 In-Reply-To: <409AAAE4.8040504@ucsd.edu> References: <409AAAE4.8040504@ucsd.edu> Message-ID: On Thu, 6 May 2004, Daniel Rogers wrote: > Hi, > > I have a serial port application which I cannot convince the serial port > event thread to die. At somepoint in the application I call: > > (port is object of class SerialPort) > port.close(); > port.removeEventListener(); > port = null; > > And even after all my threads exit, the event thread is still > persisting. How do I gracefully ask it to stop? > > Also, I'm not on the list, so please CC me on the response. Thank you. > This may not be the correct thing for rxtx to do, but when you call port.close(), rxtx closes the fd and removes the eventListener. The eventListener needs the fd to report any events so we just shut it down on close. So if you do some code that opens and closes the ports often with event listeners, you need to add the eventListener on each open, but the remove event listener is not needed - close will do that for you. It may be that some bean counting in RXTXPort.java is getting hosed with two calls to removeEventListener(). -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Tue May 11 12:41:30 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 11 May 2004 19:41:30 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: On Tue, 11 May 2004, Moritz Gmelin wrote: > Hi, > > can anybody help me with that ? A client of mine sent me those log > files. He is running an RXTX-2.1.7pre17 Application on Windows XP using > Java1.4.2_04. > It happens sometimes. I'll try to reproduce it here. > This is probably due to rxtx storing pointers to the JNIEnv and other variables in the JNI Environment. The problem started showing up in later versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem (at least not noticably), the 1.4 JRE does. I started getting rid of the pointers that cause the problem but have not had time to finish it. If you can use the 1.3 JRE this should help significantly. I suspect this problem is worse on SMP machines. If anyone has time to work on clearing out the pointers, starting with a pointer to the Java System and obtaining the needed pointers in the JNIEnv, I can share the patch I have so far. The problem was introduced when we started doing threading code in rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the Solaris kernel. We still need the threading code but should fix the pointers. Some urls to give an idea whats involved. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com http://java.sun.com/docs/books/tutorial/native1.1/implementing/refs.html http://www.complex-ite.net/tutorials/JDCBook/jniref.html -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Wed May 12 03:09:26 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Wed, 12 May 2004 11:09:26 +0200 Subject: [Rxtx] Core-Dump In-Reply-To: References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> Message-ID: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Hi Trent, is that patch already in the CVS ? I'd gladly have a look at it if you could send me your patch so far. Greetings Moritz Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > On Tue, 11 May 2004, Moritz Gmelin wrote: > >> Hi, >> >> can anybody help me with that ? A client of mine sent me those log >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP >> using >> Java1.4.2_04. >> It happens sometimes. I'll try to reproduce it here. >> > > This is probably due to rxtx storing pointers to the JNIEnv and other > variables in the JNI Environment. The problem started showing up in > later > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > (at least not noticably), the 1.4 JRE does. I started getting rid of > the > pointers that cause the problem but have not had time to finish it. > > If you can use the 1.3 JRE this should help significantly. I suspect > this > problem is worse on SMP machines. > > If anyone has time to work on clearing out the pointers, starting with > a > pointer to the Java System and obtaining the needed pointers in the > JNIEnv, I can share the patch I have so far. > > The problem was introduced when we started doing threading code in > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > Solaris kernel. We still need the threading code but should fix the > pointers. > > Some urls to give an idea whats involved. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > refs.html > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > -- > Trent Jarvi > taj at www.linux.org.uk > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From taj at www.linux.org.uk Wed May 12 17:06:54 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 00:06:54 +0100 (BST) Subject: [Rxtx] Core-Dump In-Reply-To: <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> References: <5A45F0A8-A32F-11D8-93F0-000A95BC7E8A@gmx.de> <1128024E-A3F4-11D8-95E4-000A95BC7E8A@gmx.de> Message-ID: On Wed, 12 May 2004, Moritz Gmelin wrote: > Hi Trent, > > is that patch already in the CVS ? > I'd gladly have a look at it if you could send me your patch so far. > Attached is the patch. It wasnt ready for CVS when I had to stop. feel free to look at/modify it. The patch just needs devel time. It is somewhat hard to find documentation on the details on the Internet. Most documentation that is available can be found at: http://www.doc.ic.ac.uk/csg/java/1.4docs/guide/jni/index.html And off the links from there. >From memory, I was stuck trying to figure out how to obtain pointers to some of the JVM variables required for the callbacks in threads. I think I was trying to figure out how to obtain a pointer to the Java OS. I'd have to sit down and dig through things again. One of those nagging TODO projects. A clean fix is needed and I only had time for a quick hack. > Greetings > > Moritz > Am 11.05.2004 um 20:41 schrieb Trent Jarvi: > > > On Tue, 11 May 2004, Moritz Gmelin wrote: > > > >> Hi, > >> > >> can anybody help me with that ? A client of mine sent me those log > >> files. He is running an RXTX-2.1.7pre17 Application on Windows XP > >> using > >> Java1.4.2_04. > >> It happens sometimes. I'll try to reproduce it here. > >> > > > > This is probably due to rxtx storing pointers to the JNIEnv and other > > variables in the JNI Environment. The problem started showing up in > > later > > versions of the 1.4 JRE. While the 1.3 JRE does not expose the problem > > (at least not noticably), the 1.4 JRE does. I started getting rid of > > the > > pointers that cause the problem but have not had time to finish it. > > > > If you can use the 1.3 JRE this should help significantly. I suspect > > this > > problem is worse on SMP machines. > > > > If anyone has time to work on clearing out the pointers, starting with > > a > > pointer to the Java System and obtaining the needed pointers in the > > JNIEnv, I can share the patch I have so far. > > > > The problem was introduced when we started doing threading code in > > rxtx-1.5-8 and rxtx-1.4-15 to deal with some 'missing' features in the > > Solaris kernel. We still need the threading code but should fix the > > pointers. > > > > Some urls to give an idea whats involved. > > > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF > > -8&selm=jm2vgvob25ab9foa5sbd55jl5sgqsf68r5%404ax.com > > http://java.sun.com/docs/books/tutorial/native1.1/implementing/ > > refs.html > > http://www.complex-ite.net/tutorials/JDCBook/jniref.html > > > > -- > > Trent Jarvi > > taj at www.linux.org.uk > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk -------------- next part -------------- A non-text attachment was scrubbed... Name: rxtx-2.1-7pre17.threadfixes.patch.gz Type: application/x-gzip Size: 2453 bytes Desc: Incomplete Thread Fixes Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040513/ff834914/attachment-0008.gz From eng12004 at nus.edu.sg Thu May 13 03:15:24 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Thu, 13 May 2004 17:15:24 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth Message-ID: I downloaded RXTX from the link given and did the required configuration I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... CommPortIdentifier.getPortIdentifier("COM1"); but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. Thanking you in advance. :) Sanka From oao.fibula at c2i.net Thu May 13 03:54:31 2004 From: oao.fibula at c2i.net (Odd Arild Olsen) Date: Thu, 13 May 2004 11:54:31 +0200 Subject: [Rxtx] Signature Message-ID: <200405131154.31786.oao.fibula@c2i.net> I had java standard edition 1.4.1 and installed libParallel-1.4.15.so and libSerial-1.4.15.so from rxtx-bins.1.tar/1.4/i386-pc-linux comm.jar from javax_comm- 2_0_3-solsparc.tar libSolarisSerialParallel.so from javacomm20-x86.tar and get this error message: oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. BlackBox -p /dev/ttyS0 Opening port /dev/ttyS0 Exception in thread "main" java.lang.VerifyError: (class: gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use of nonvirtual function call at gnu.io.RXTXPort.(RXTXPort.java) at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) at SerialPortDisplay.(SerialPortDisplay.java:126) at BlackBox.addPort(BlackBox.java:294) at BlackBox.main(BlackBox.java:188) From doktorbernd at hotmail.com Thu May 13 09:23:26 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 15:23:26 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I want to use the iRDA Port of my iPAQ using the rxtx version I have found under http://republika.pl/mho/java/comm/index.html I have installed everything and I can open the IR port. Now I am trying to write on the OutputStream received from the port, but I keep getting a strange Exception. (the message of the Ecxeption is in german) java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist intern inkosistent. in writeArray - WriteFile at gnu.io.RXTXPort.writeArray (Native Method) at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) . . . I would translate it with something like "the database of the security accounts manager is internally inconsitent". I have no Idea what this means, but it bothers me that its a native Method. Does that mean that I can't use RXTX for the IR port or is there some setting I have to adjust? I have a eVC++ programm that can use the port without problems. Have fun, FReAK _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Thu May 13 11:01:47 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:01:47 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Doktor Bernd wrote: > Hi, > I want to use the iRDA Port of my iPAQ using the rxtx version I have found > under http://republika.pl/mho/java/comm/index.html > > I have installed everything and I can open the IR port. Now I am trying to > write on the OutputStream received from the port, but I keep getting a > strange Exception. (the message of the Ecxeption is in german) > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > intern inkosistent. in writeArray - WriteFile > at gnu.io.RXTXPort.writeArray (Native Method) > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > . > . > . > > I would translate it with something like "the database of the security > accounts manager is internally inconsitent". > I have no Idea what this means, but it bothers me that its a native Method. > Does that mean that I can't use RXTX for the IR port or is there some > setting I have to adjust? > > I have a eVC++ programm that can use the port without problems. > Perhaps this is an applet? Applets have special security concerns in their sandbox. The C WriteFile() is going to be essentially the same as that used in a (eV?) C++ program. I cant think of anything else that relates to accounts and security. Perhaps the message makes more sense in the context of the application thats being run. -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:31:24 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:31:24 +0100 (BST) Subject: [Rxtx] Signature In-Reply-To: <200405131154.31786.oao.fibula@c2i.net> References: <200405131154.31786.oao.fibula@c2i.net> Message-ID: On Thu, 13 May 2004, Odd Arild Olsen wrote: > > I had java standard edition 1.4.1 and installed > > libParallel-1.4.15.so and libSerial-1.4.15.so from > rxtx-bins.1.tar/1.4/i386-pc-linux > > comm.jar from javax_comm- 2_0_3-solsparc.tar > > libSolarisSerialParallel.so from javacomm20-x86.tar > > and get this error message: > > oao at asus:~/commapi/samples/BlackBox> java -cp /usr/lib/java/jre/lib/ext/:. > BlackBox -p /dev/ttyS0 > Opening port /dev/ttyS0 > Exception in thread "main" java.lang.VerifyError: (class: > gnu/io/RXTXPort$SerialOutputStream, method: flush signature: ()V) Illegal use > of nonvirtual function call > at gnu.io.RXTXPort.(RXTXPort.java) > at gnu.io.RXTXCommDriver.getCommPort(RXTXCommDriver.java) > at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:634) > at SerialPortDisplay.openBBPort(SerialPortDisplay.java:153) > at SerialPortDisplay.(SerialPortDisplay.java:126) > at BlackBox.addPort(BlackBox.java:294) > at BlackBox.main(BlackBox.java:188) > > > Thats an older version of rxtx. The fix was rather easy change some methods from private to protected. If new jvm's still support it you can pass -noverify and the above library will work. The other option is to upgrade with the matching library from http://www.rxtx.org/download.html -- Trent Jarvi taj at www.linux.org.uk From taj at www.linux.org.uk Thu May 13 11:37:02 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 13 May 2004 18:37:02 +0100 (BST) Subject: [Rxtx] Problem with RXTX and Bluetooth In-Reply-To: References: Message-ID: On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I've written a java program for it and it worked in the Windows platfor with... > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit, using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Thu May 13 12:15:13 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Thu, 13 May 2004 18:15:13 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, thanx for thinking about it. I am using a simple application for testing the serial stuff so I am sure that it's not an applet. My iPAQ is an old 3630 with Pocket PC 2002. As VM I have tried Jeode and Suns Personal Runtime. I get the Exception with both VMs. That's my Code (I am just sending a byte to check if the port is working) import java.io.*; import javax.comm.*; public class IRTest { private String myPortName = "COM3:"; private OutputStream myOutputStream; private InputStream myInputStream; private CommPortIdentifier myPortIdentifier; private SerialPort myPort; public IRTest() throws Exception { myPortIdentifier = CommPortIdentifier.getPortIdentifier(myPortName); try { myPort = (SerialPort) myPortIdentifier.open("TestPort", 1000); myPort.setSerialPortParams(2400,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_ODD); myPort.enableReceiveTimeout(1000); myOutputStream = new BufferedOutputStream(myPort.getOutputStream(), 4096); myInputStream = myPort.getInputStream(); } catch (Exception e) { if (myPort != null) myPort.close(); throw e; } } public synchronized void sendTestData() throws IOException { if (myPort==null) throw new IOException("Port closed"); myOutputStream.write((byte)0x10); myOutputStream.flush(); } public synchronized void close() { if (myPort != null) { myPort.close(); myPort = null; } } public static void main(String args[]) throws Exception { System.out.print("Opening port ..."); IRTest aPort = new IRTest(); System.out.println("done."); System.out.print("Sending Data..."); aPort.sendTestData(); System.out.println("done."); } } >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Thu, 13 May 2004 18:01:47 +0100 (BST) > >On Thu, 13 May 2004, Doktor Bernd wrote: > > > Hi, > > I want to use the iRDA Port of my iPAQ using the rxtx version I have >found > > under http://republika.pl/mho/java/comm/index.html > > > > I have installed everything and I can open the IR port. Now I am trying >to > > write on the OutputStream received from the port, but I keep getting a > > strange Exception. (the message of the Ecxeption is in german) > > > > java.io.IOException: Die Datenbank der Sicherheitskontenverwaltung ist > > intern inkosistent. in writeArray - WriteFile > > at gnu.io.RXTXPort.writeArray (Native Method) > > at gnu.io.RXTXPort$SerialOutpuStream.write (bytecode 83) > > . > > . > > . > > > > I would translate it with something like "the database of the security > > accounts manager is internally inconsitent". > > I have no Idea what this means, but it bothers me that its a native >Method. > > Does that mean that I can't use RXTX for the IR port or is there some > > setting I have to adjust? > > > > I have a eVC++ programm that can use the port without problems. > > > >Perhaps this is an applet? Applets have special security concerns in >their sandbox. The C WriteFile() is going to be essentially the same as >that used in a (eV?) C++ program. > >I cant think of anything else that relates to accounts and security. >Perhaps the message makes more sense in the context of the application >thats being run. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From Michal_Hobot at drq.pl Fri May 14 03:09:45 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 11:09:45 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Can you test your app with serial port COM1: ? I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. On the other hand - try opening COM3: with some terminal program. The easiest way is defining internet connection through COM3: with terminal window before dialing. Then, check it. Maybe you should use COM4: instead of COM3: ? Infrared ports have usually two ports assigned: one for low level and second one for regular access. Cheers, Michal From blalor at bravo5.org Fri May 14 07:04:24 2004 From: blalor at bravo5.org (Brian Lalor) Date: Fri, 14 May 2004 08:04:24 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X Message-ID: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Good morning, all. I just bought an IOGear USB to Serial adapter and am trying to get it (and my Garmin GPS) working with Java. I discovered javax.comm, rxtx and a GPS library from aasted.org. I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. The instructions for getting RXTX and javax.comm working with OS X seem a little dicy. I was able to build RXTXcomm.jar and libSerial.jnilib by doing a "./configure && make" with a little jiggering. The configure required Sun's comm.jar in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ ext/ and javax.comm.properties in /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ which I've done. The generated Makefile required a tweak to make it look for SerialImp.lo instead of SerialImp.o. Once that was done, everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in ~/Library/Java/Extensions. When I tried to do "CommPortIdentifier.getPortIdentifiers()", I got: Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path while loading driver gnu.io.RXTXCommDriver Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver com.sun.comm.SolarisDriver I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver com.sun.comm.SolarisDriver What am I doing wrong? I'm running OS X 10.3.3 (Panther). The packages that come with the tarball seem pretty dirty, and didn't appear to match up with my system (there was an RXTX.pkg that seems to be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). I'd really appreciate some help, and I'd be happy to work with whomever to make the build process more straightforward for OS X. Thanks, B -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From doktorbernd at hotmail.com Fri May 14 07:49:07 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Fri, 14 May 2004 13:49:07 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, well I have tried to use COM1:, but the I get following error java.lang.UnsatisfiedLinkError: nativeDrain at gnu.io.RXTXPort.nativeDrain(Native Method) at gnu.io.RXTXPort$SerialOutputStream.flush(Bytecode 47) I have seen that this was a topic on the list http://marc.theaimsgroup.com/?l=rxtx&m=108012265801373&w=2 so maybe I have the wrong version? (but I have downloaded it yesterday) The visual c++ programm I have lets me use all com ports and only com1 and 3 are working, so I think ther is no working com4 port on my device. (i can get the device information via com3 from my mobile phone) Have fun, FReAK >From: Michal_Hobot at drq.pl >To: Java RXTX discussion >CC: "Doktor Bernd" >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 11:09:45 +0200 > > >Can you test your app with serial port COM1: ? >I have iPAQ 3650 / Pocket PC 2002 and everything works OK with Jeode. >On the other hand - try opening COM3: with some terminal program. The >easiest way is defining internet connection through COM3: with terminal >window before dialing. Then, check it. Maybe you should use COM4: instead >of COM3: ? Infrared ports have usually two ports assigned: one for low >level and second one for regular access. > >Cheers, >Michal > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From dmarkman at mac.com Fri May 14 09:55:01 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:55:01 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> RXTX_Jag is good for Panther as well if you can help to create make file to build/install things on MAC OS X it would be great currently I build binaries with XCode or CodeWarrior without problem another thing comm.jar should be solaris version not windows that's important better to put that comm.jar into the same ~/Library/Java/Extensions folder or /Library/Java/Extensions ext is place for system jars I think here is description of my system files involved in the 2.0.7 /Library/Java/Extensions jcl.jar librxtxSerial.jnilib you can put solaris's comm.jar there too but ext folder should be OK $(JAVA_HOME)/lib should contain file javax.comm.properties that file has only one line: Driver=gnu.io.RXTXCommDriver you have to setup place for the lock files do the following: make sure you are member of the uucp group here is a script that could help you #!/bin/sh curruser=`sudo id -p | grep 'login' | sed 's/login.//'` echo $curruser if [ ! -d /var/spool/uucp ] then sudo mkdir /var/spool/uucp fi sudo chgrp uucp /var/spool/uucp sudo chmod 775 /var/spool/uucp if [ ! `sudo niutil -readprop / /groups/uucp users | grep $curruser > /dev/null` ] then sudo niutil -mergeprop / /groups/uucp users $curruser fi hope it will help On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmarkman at mac.com Fri May 14 09:40:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 14 May 2004 11:40:07 -0400 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> Message-ID: there are XCode/Project Builder projects to build jar and jnilib in 2.0.7 distribution (you can find there installer too) your jnilib has to have the name librxtxSerial.jnilib so just rename your library (if its name is different) and put jars and jnilib into the ~/Library/Java/Extensions folder (if you don't have such a folder create it) if you have any problem send me question off-list t On May 14, 2004, at 9:04 AM, Brian Lalor wrote: > Good morning, all. I just bought an IOGear USB to Serial adapter and > am trying to get it (and my Garmin GPS) working with Java. I > discovered javax.comm, rxtx and a GPS library from aasted.org. > > I'm using OS X 10.3.3 (Panther) and rxtx-2.0-7pre1. > > The instructions for getting RXTX and javax.comm working with OS X > seem a little dicy. I was able to build RXTXcomm.jar and > libSerial.jnilib by doing a "./configure && make" with a little > jiggering. The configure required Sun's comm.jar in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > ext/ and javax.comm.properties in > /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/ > which I've done. The generated Makefile required a tweak to make it > look for SerialImp.lo instead of SerialImp.o. Once that was done, > everything built ok. I dropped libSerial.jnilib and RXTXcomm.jar in > ~/Library/Java/Extensions. When I tried to do > "CommPortIdentifier.getPortIdentifiers()", I got: > > Caught java.lang.UnsatisfiedLinkError: no rxtxSerial in > java.library.path while loading > driver gnu.io.RXTXCommDriver > Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no > SolarisSerialParallel in > java.library.path > Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while > loading driver > com.sun.comm.SolarisDriver > > I created a symlink from libSerial.jnilib to librxtxSerial.jnilib. > Now when I do "CommPortIdentifier.getPortIdentifiers()", I see: > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver com.sun.comm.SolarisDriver > > What am I doing wrong? I'm running OS X 10.3.3 (Panther). The > packages that come with the tarball seem pretty dirty, and didn't > appear to match up with my system (there was an RXTX.pkg that seems to > be for 10.0.x and a RXTX_Jag.pkg for Jaguar, but nothing for Panther). > > I'd really appreciate some help, and I'd be happy to work with > whomever to make the build process more straightforward for OS X. > > Thanks, > B > > -- > __ ____ > / / / __/ Brian Lalor > / _ \/__ \ blalor at bravo5.org > /_.__/____/ http://bravo5.org/ > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From Michal_Hobot at drq.pl Fri May 14 10:32:46 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Fri, 14 May 2004 18:32:46 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: That's very strange. Maybe you have dll and java part coming from different versions? You can always take CVS snapshot and compile it yourself... Michal From taj at www.linux.org.uk Fri May 14 14:53:10 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 14 May 2004 21:53:10 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > That's very strange. > > Maybe you have dll and java part coming from different versions? > You can always take CVS snapshot and compile it yourself... > The nativeDrain() question did pop up before. The C++ code was just slightly out of sync with the C code. You did provide a fix for that and I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 rxtx. -- Trent Jarvi taj at www.linux.org.uk From blalor at bravo5.org Sat May 15 06:08:31 2004 From: blalor at bravo5.org (Brian Lalor) Date: Sat, 15 May 2004 07:08:31 -0500 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <95598914-A668-11D8-9F0A-000A95E9CD22@bravo5.org> On May 14, 2004, at 10:55 AM, Dmitry Markman wrote: > RXTX_Jag is good for Panther as well Even with 1.4.2, it would appear. Cool! > if you can help to create make file to build/install things on MAC OS > X it would be great That's mostly a function of the auto* stuff. I'd much prefer going that route than using XCode, as it is easier (as far as I know) to do from the commandline. I did get RXTX working by manually copying everything out of the Jaguar .pkg into ~/Library/Java/Extensions, except for javax.comm.properties, which is in $JAVA_HOME/lib. Why does that need to be there? That's annoying... I'll revisit building from source at a later time. Thanks for your help! -- __ ____ / / / __/ Brian Lalor / _ \/__ \ blalor at bravo5.org /_.__/____/ http://bravo5.org/ From eng12004 at nus.edu.sg Sun May 16 19:23:49 2004 From: eng12004 at nus.edu.sg (Sanka Ravipriya Hettiarachchi) Date: Mon, 17 May 2004 09:23:49 +0800 Subject: [Rxtx] Problem with RXTX and Bluetooth References: Message-ID: <40A81425.000004.02404@ENG12004> Hi Trent, Managed to solve the problem. It was a lifesaver. Added the "rfcomm" ports and recompiled. Thanks again. Sanka. -------Original Message------- From: Java RXTX discussion Date: 05/14/04 01:37:34 To: Java RXTX discussion Subject: Re: [Rxtx] Problem with RXTX and Bluetooth On Thu, 13 May 2004, Sanka Ravipriya Hettiarachchi wrote: > > I downloaded RXTX from the link given and did the required configuration > > I'm currently trying to send AT commands using RXTX to my mobile phone. I ve written a java program for it and it worked in the Windows platfor with.. > > CommPortIdentifier.getPortIdentifier("COM1"); > > but when I use it in Linux, and try to acces the bluetooth port, rfcomm0, it throws a NoSuchPortException. > eg. CommPortIdentifier.getPortIdentifier("/dev/rfcomm0"); > > Presently I've successfully sent AT commands to the P900 phone from kermit using /dev/rfcomm0. > > I'd like to know how it is possible to send the required AT commands to the rfcomm port successfully. Please kindly help if possible for me to overcome this problem, as I'm currently stuck halfway in my Final-year project. > > Thanking you in advance. :) > The INSTALL file from rxtx source explains how you can override this. I usually just modify the java file RXTXCommDriver but there is code in there for overriding the properties: Q. How does rxtx detect ports? Can I override it? rxtx tries to detect ports on by scanning /dev for files matching any of a set of known-good prefixes, such as 'ttyS', 'ttym', and so on. Any ones that exist, are supposed to be good for the current operating system, and that can be read and written are offered back from CommPortIdentifier.getPortIdentifiers(), and only these can be used as ports. If you wish, you can set the system properties gnu.io.rxtx.SerialPorts and gnu.io.rxtx.ParallelPorts. If either of these is set, then no scanning will be carried out and only the specified ports will be available. You can use this to make one platform look like another, to restrict Java access to ports, or possibly for other reasons. For example java -Dgnu.io.rxtx.SerialPorts=/dev/cua/a:/dev/cua/b com.foo.MyApp will look kind of like Solaris, if you have created the appropriate device nodes. A note on Linux port enumeration. We have set most ports aside. Once the number of possible devices started getting into the thousands, checking them all made little sense. Look in RXTXCommDriver.java and search for Linux. You will see that only /dev/ttyS* is searched but the possible addition ports that can be used are listed under it. Just copy the few you need. -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0040.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 494 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/4304c8e3/attachment-0040.gif From doktorbernd at hotmail.com Sun May 16 19:43:50 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 01:43:50 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, now I am back on this and I hope you had a nice weekend. I have downloaded the snapshop from the cvs and now I have a new problem. I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in \Windows. When I start the test app nothing changed, I just get that error msg. Then I have complied the java files on my iPAQ. When I use these file with the new dll, I get following message: Java lib Version = RXTX-2.0-7pre1 WARNING: RXTX Version mismatch Jar version = RXTX-2.0.7pre1 native lib Version = RXTX-2.0-1 Exception in thread "main", javax.comm.UnsupportedCommOperationException: Invalid Parameter at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) . . . Is there something wrong with the cvs, or is it just me beeing stupid? FReAK >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > That's very strange. > > > > Maybe you have dll and java part coming from different versions? > > You can always take CVS snapshot and compile it yourself... > > > >The nativeDrain() question did pop up before. The C++ code was just >slightly out of sync with the C code. You did provide a fix for that and >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 >rxtx. > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Sun May 16 21:26:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 04:26:18 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > now I am back on this and I hope you had a nice weekend. > I have downloaded the snapshop from the cvs and now I have a new problem. > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > \Windows. > When I start the test app nothing changed, I just get that error msg. > Then I have complied the java files on my iPAQ. When I use these file with > the new dll, I get following message: > > Java lib Version = RXTX-2.0-7pre1 > WARNING: RXTX Version mismatch > Jar version = RXTX-2.0.7pre1 > native lib Version = RXTX-2.0-1 OK. I fixed this in CVS. No big deal. The win32 code went through several changes last year but not WinCE. Which brings us to.. > Exception in thread "main", javax.comm.UnsupportedCommOperationException: > Invalid Parameter > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > . > . > . I dont have the setup to test this but just looking there is a slight problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, the Java code expects it to return jboolean. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, jint speed, jint dataBits, jint stopBits, jint parity) { ... return; } The code should be: ------------v v JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ jint speed, jint dataBits, jint stopBits, jint parity) ... return(0); //success return(1); //failure. It looks like WinCE does not generate the JNI headers with javah. So the include file gnu_io_RXTXPort.h also needs to be fixed: ------------v v JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M (JNIEnv *, jobject, jint, jint, jint, jint); that should be jboolean not void. I'm sure I changed the Java code at some point and forget to mention it to Michal. There may be a few more cases of this in the code. I looked at rxtx 2.1 and the same problem is there for WinCE. If you do make a fix please let us know so we can put it into cvs. > Is there something wrong with the cvs, or is it just me beeing stupid? > FReAK > > > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > That's very strange. > > > > > > Maybe you have dll and java part coming from different versions? > > > You can always take CVS snapshot and compile it yourself... > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > >slightly out of sync with the C code. You did provide a fix for that and > >I think we put that in CVS. But I dont recall if we did both 2.0 and 2.1 > >rxtx. > > > >-- > >Trent Jarvi > >taj at www.linux.org.uk > >_______________________________________________ > >Rxtx mailing list > >Rxtx at linuxgrrls.org > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 01:35:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 09:35:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: Hi Dmitry, On 14.05.2004, at 17:55, Dmitry Markman wrote: > if you can help to create make file to build/install things on MAC OS > X it would be great > I managed to compile librxtxSerial with the autotools. So far I couldn't figure out what changes are required. Stay tuned, I'll send configure.in patch soon. matthias From taj at www.linux.org.uk Mon May 17 02:46:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 09:46:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > Hi Dmitry, > On 14.05.2004, at 17:55, Dmitry Markman wrote: > > > if you can help to create make file to build/install things on MAC OS > > X it would be great > > > > I managed to compile librxtxSerial with the autotools. So far I > couldn't figure > out what changes are required. Stay tuned, I'll send configure.in patch > soon. > If you can send me a modified Makefile that works and the original Makefile I can fix the configure.in and Makefile.am fairly quickly. Those files get a little confusing if you have not tinkered with them. -- Trent Jarvi taj at www.linux.org.uk From doktorbernd at hotmail.com Mon May 17 02:55:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 08:55:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I'd really like to fix that, but I have no idea of C/C++ programming. Actually I am glad that I got the compiler running. So I don't know if I am able to do that. Anyway, I managed to make the changes you mentioned and got rid of the parameter error. But then I got the strange security account manager exception again :-( FReAK P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the most uptodate one? >From: Trent Jarvi >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > Hi, > > now I am back on this and I hope you had a nice weekend. > > I have downloaded the snapshop from the cvs and now I have a new >problem. > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > \Windows. > > When I start the test app nothing changed, I just get that error msg. > > Then I have complied the java files on my iPAQ. When I use these file >with > > the new dll, I get following message: > > > > Java lib Version = RXTX-2.0-7pre1 > > WARNING: RXTX Version mismatch > > Jar version = RXTX-2.0.7pre1 > > native lib Version = RXTX-2.0-1 > >OK. I fixed this in CVS. No big deal. The win32 code went through >several changes last year but not WinCE. Which brings us to.. > > > Exception in thread "main", >javax.comm.UnsupportedCommOperationException: > > Invalid Parameter > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > . > > . > > . > >I dont have the setup to test this but just looking there is a slight >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, >the Java code expects it to return jboolean. > >JNIEXPORT void JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, >jint speed, jint dataBits, jint stopBits, jint parity) >{ > >... > return; >} > >The code should be: > >------------v > v >JNIEXPORT jboolean JNICALL >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ >jint speed, jint dataBits, jint stopBits, jint parity) > >... > return(0); //success > return(1); //failure. > >It looks like WinCE does not generate the JNI headers with javah. So the >include file gnu_io_RXTXPort.h also needs to be fixed: >------------v > v >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > (JNIEnv *, jobject, jint, jint, jint, jint); > >that should be jboolean not void. > >I'm sure I changed the Java code at some point and forget to mention it to >Michal. There may be a few more cases of this in the code. I looked at >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix >please let us know so we can put it into cvs. > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > FReAK > > > > > > >From: Trent Jarvi > > >Reply-To: Java RXTX discussion > > >To: Java RXTX discussion > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > That's very strange. > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > >slightly out of sync with the C code. You did provide a fix for that >and > > >I think we put that in CVS. But I dont recall if we did both 2.0 and >2.1 > > >rxtx. > > > > > >-- > > >Trent Jarvi > > >taj at www.linux.org.uk > > >_______________________________________________ > > >Rxtx mailing list > > >Rxtx at linuxgrrls.org > > >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Rxtx mailing list > > Rxtx at linuxgrrls.org > > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > > >-- >Trent Jarvi >taj at www.linux.org.uk >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From taj at www.linux.org.uk Mon May 17 03:11:32 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 10:11:32 +0100 (BST) Subject: [Rxtx] rxtx on iPAQ, strange Exception In-Reply-To: References: Message-ID: On Mon, 17 May 2004, Doktor Bernd wrote: > Hi, > I'd really like to fix that, but I have no idea of C/C++ programming. > Actually I am glad that I got the compiler running. So I don't know if I am > able to do that. > Anyway, I managed to make the changes you mentioned and got rid of the > parameter error. But then I got the strange security account manager > exception again :-( > > FReAK > > P.S. Oh and why do I get 2.0 something version mismatch. isn't the cvs the > most uptodate one? > CVS is the most recent. If you type 'cvs update' in the top directory, you will see that has been corrected - but the library will need to be recompiled. The Ipaq code has not changed except for some minor fixes since 2.0-1. I didnt realize there was a version number that needed adjusting. Most people have been using Michal's binary files. I looked at the Java and native methods/functions and they match in nativeDrain. I'll have to go back and look at the original error message tomorrow. The exception was strange but the rxtx error looked sane as I recall. > >From: Trent Jarvi > >Reply-To: Java RXTX discussion > >To: Java RXTX discussion > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > >Date: Mon, 17 May 2004 04:26:18 +0100 (BST) > > > >On Mon, 17 May 2004, Doktor Bernd wrote: > > > > > Hi, > > > now I am back on this and I hope you had a nice weekend. > > > I have downloaded the snapshop from the cvs and now I have a new > >problem. > > > I have compile the WinCE dll with embeddedVC++ 3.0 and placed the dll in > > > \Windows. > > > When I start the test app nothing changed, I just get that error msg. > > > Then I have complied the java files on my iPAQ. When I use these file > >with > > > the new dll, I get following message: > > > > > > Java lib Version = RXTX-2.0-7pre1 > > > WARNING: RXTX Version mismatch > > > Jar version = RXTX-2.0.7pre1 > > > native lib Version = RXTX-2.0-1 > > > >OK. I fixed this in CVS. No big deal. The win32 code went through > >several changes last year but not WinCE. Which brings us to.. > > > > > Exception in thread "main", > >javax.comm.UnsupportedCommOperationException: > > > Invalid Parameter > > > at gnu.io.RXTXPort.setSerialPortParams (bytecode 18) > > > . > > > . > > > . > > > >I dont have the setup to test this but just looking there is a slight > >problem. The native code (gnu_io_RXTXPort.cpp) is trying to return void, > >the Java code expects it to return jboolean. > > > >JNIEXPORT void JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *env, jobject jobj, > >jint speed, jint dataBits, jint stopBits, jint parity) > >{ > > > >... > > return; > >} > > > >The code should be: > > > >------------v > > v > >JNIEXPORT jboolean JNICALL > >Java_gnu_io_RXTXPort_nativeSetSerialPortParams(JNIEnv *e$ > >jint speed, jint dataBits, jint stopBits, jint parity) > > > >... > > return(0); //success > > return(1); //failure. > > > >It looks like WinCE does not generate the JNI headers with javah. So the > >include file gnu_io_RXTXPort.h also needs to be fixed: > >------------v > > v > >JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams^M > > (JNIEnv *, jobject, jint, jint, jint, jint); > > > >that should be jboolean not void. > > > >I'm sure I changed the Java code at some point and forget to mention it to > >Michal. There may be a few more cases of this in the code. I looked at > >rxtx 2.1 and the same problem is there for WinCE. If you do make a fix > >please let us know so we can put it into cvs. > > > > > Is there something wrong with the cvs, or is it just me beeing stupid? > > > FReAK > > > > > > > > > >From: Trent Jarvi > > > >Reply-To: Java RXTX discussion > > > >To: Java RXTX discussion > > > >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception > > > >Date: Fri, 14 May 2004 21:53:10 +0100 (BST) > > > > > > > >On Fri, 14 May 2004 Michal_Hobot at drq.pl wrote: > > > > > > > > > > > > > > That's very strange. > > > > > > > > > > Maybe you have dll and java part coming from different versions? > > > > > You can always take CVS snapshot and compile it yourself... > > > > > > > > > > > > >The nativeDrain() question did pop up before. The C++ code was just > > > >slightly out of sync with the C code. You did provide a fix for that > >and > > > >I think we put that in CVS. But I dont recall if we did both 2.0 and > >2.1 > > > >rxtx. > > > > > > > >-- -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 06:02:49 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 14:02:49 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> Message-ID: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> hi trent, >> >> I managed to compile librxtxSerial with the autotools. So far I >> couldn't figure >> out what changes are required. Stay tuned, I'll send configure.in >> patch >> soon. >> > > If you can send me a modified Makefile that works and the original > Makefile I can fix the configure.in and Makefile.am fairly quickly. I will sent them today (CET) > Those files get a little confusing if you have not tinkered with them. I really do agree here.. :) matthias From linf at umich.edu Mon May 17 08:48:50 2004 From: linf at umich.edu (Frank L) Date: Mon, 17 May 2004 10:48:50 -0400 Subject: [Rxtx] Parallel on Mac OS X Message-ID: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Hi, I am not sure if this has been asked before but couldn't find it in the archive. My question is, has anyone tried using RXTX with a USB-Parallel converter on a Mac? Did it work? Another related question I have is that whether the RXTX 2.0 w/ Sun API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your help, Frank From dmarkman at mac.com Mon May 17 09:00:40 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 17 May 2004 11:00:40 -0400 Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: I only know that you can build librxtxParallel.jnilib for sure but I never try to use it with some hardware On May 17, 2004, at 10:48 AM, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in > the archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun > API and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for > your help, > > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From doktorbernd at hotmail.com Mon May 17 09:46:32 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Mon, 17 May 2004 15:46:32 +0000 Subject: [Rxtx] Re: rxtx on iPAQ, strange Exception Message-ID: Hi and thanx for the files. I have tried them and unfortunately they bring up the same error message. Is it possible that it is just a stupid setting that causes all this? I only know about the checkbox in settings/connections/beam. Is there anything else? I think I will try a hardware reset to make sure that it is not something I have installed on the pda that causes this problem. FReAK >From: Michal_Hobot at drq.pl >To: "Doktor Bernd" >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 17:03:35 +0200 > > >Could you please try these binaries? > >I have at least one successful user of it. > >Michal >(See attached file: rxtxserial.dll)(See attached file: jcl.jar) ><< rxtxserial.dll >> ><< jcl.jar >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From taj at www.linux.org.uk Mon May 17 12:52:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 19:52:41 +0100 (BST) Subject: [Rxtx] Parallel on Mac OS X In-Reply-To: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> References: <4F5B62B2-A811-11D8-80B7-000393D14348@umich.edu> Message-ID: On Mon, 17 May 2004, Frank L wrote: > Hi, > > I am not sure if this has been asked before but couldn't find it in the > archive. My question is, has anyone tried using RXTX with a > USB-Parallel converter on a Mac? Did it work? > > Another related question I have is that whether the RXTX 2.0 w/ Sun API > and RXTX 2.1 w/o Sun API behave exactly the same. Thank you for your > help, > RXTX 2.1 has some unadvertised features(methods) that are not in 2.0 or commapi. Otherwise the packages, are intended to be identical except for package names for the casual user. The native code is practically identical. RXTX 2.0 just does not offer the additional methods at the Java level. RXTX 2.1 does not look for the javax.comm.properties to determine the low level driver as it is assumed that rxtx will be the low level driver. The code could be changed to do that. Sun's CommAPI documentation never specified defaults for things like timeouts and thresholds. No attempt was ever made to determine what they use. So it is well possible if you assume defaults for Sun's CommAPI the behavior will not be identical if you use rxtx. Last time I looked, Sun even pulled the CommAPI documentation from its web site. Any other differences are bugs that will be in rxtx 2.0 and rxtx 2.1. Some of which are listed already: # Baudrates of 128000 * N may have problems # Add a method for re-checking for valid ports # Add support in RXTX to specify valid ports on the PC. # Adding support for half duplex serial communication. # Error events for parity errors. # Baudrate of 5 # serial break time # terminating character checking for reads # Event listeners need to be added when the port is opened to initialize the native structures. # Closing a port from an event listener results in a deadlock. # Closing a port without adding an event listener results in a deadlock. > Frank > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon May 17 14:19:04 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 17 May 2004 22:19:04 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. problem: After installing librxtxSerial.jnilib and RXTXcomm.jar, I tried the PortTest file. Then I get the output/error msg: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier while loading driver gnu.io.RXTXCommDriver Ports found: usage: PortTest why is it written javax.comm/CommPortIdentifier ^ ^ first '.' then '/' ? I think I remember this situation before but don't know how I did solve it. to get it compile, I did: - install current java sdk(java sdk 1.4.2 from apple). thanks to hint from dmitry.. changes in configure.in: - fix header include path JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ - set correct object extension OBJECT_EXTENSION="lo" - use libtool for linking and set correct lib name: librxtxSerial.jnilib LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework CoreFoundation -framework IOKit -o librxtx\$*.jnilib " - cleaning up: - removed libtool fix - removed LDFLAGS and CFLAGS let's see, if we can get it working.. matthias diff -u against rxtx-2.0-7pre1: -------------- next part -------------- A non-text attachment was scrubbed... Name: configure.in.patch Type: application/octet-stream Size: 1196 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040517/ad9bb2c2/attachment-0008.obj -------------- next part -------------- From taj at www.linux.org.uk Mon May 17 15:24:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 17 May 2004 22:24:18 +0100 (BST) Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 17 May 2004, Matthias Ringwald wrote: > > current status: rxtx compiles on mac os x 10.3.3 using the gnu tools. > > problem: > > After installing librxtxSerial.jnilib and RXTXcomm.jar, > I tried the PortTest file. > > Then I get the output/error msg: > > Devel Library > ========================================= > Native lib Version = RXTX-2.0-7pre1 > Java lib Version = RXTX-2.0-7pre1 > Caught java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier > while loading driver gnu.io.RXTXCommDriver > Ports found: > usage: PortTest > > > why is it written javax.comm/CommPortIdentifier > ^ ^ > first '.' then '/' ? > > I think I remember this situation before but don't know how I did solve > it. > > > > to get it compile, I did: > - install current java sdk(java sdk 1.4.2 from apple). thanks to hint > from dmitry.. > > changes in configure.in: > - fix header include path > JAVAINCLUDEDIR = /System/Library/Frameworks/JavaVM.framework/Headers/ > - set correct object extension > OBJECT_EXTENSION="lo" > - use libtool for linking and set correct lib name: librxtxSerial.jnilib > LINK="\$(TOP)/libtool --mode=link \$(CC) -bundle -framework > CoreFoundation -framework IOKit -o librxtx\$*.jnilib " > - cleaning up: > - removed libtool fix > - removed LDFLAGS and CFLAGS > > let's see, if we can get it working.. > > matthias > > > diff -u against rxtx-2.0-7pre1: > > > CVS has the fix for javax.comm/CommPortIdentifier In SerialImp.c and SerialImp.h javax.comm should be replaced with javax/comm in all cases. sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file It was a sed mistake that created the problem. -- Trent Jarvi taj at www.linux.org.uk From paulo.pires at vodafone.pt Tue May 18 05:37:18 2004 From: paulo.pires at vodafone.pt (Paulo Pires) Date: Tue, 18 May 2004 12:37:18 +0100 Subject: [Rxtx] Linux running problems Message-ID: <20040518123718.677de12b@cyclops> Hi fellows. I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. I'm running Debian-unstable on a PIII Asus Notebook with: $ uname -r 2.4.18-bf2.4 $ java -version java version "1.4.2_04" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) and I've executed the following steps: $ cd commapi/ $ cp comm.jar /usr/local/java/lib/ $ cp comm.jar /usr/local/java/jre/lib/ext/ $ cp libSolarisSerialParallel.so /usr/local/java/bin/ $ cp libSolarisSerialParallel.so /usr/local/java/jre/bin/ $ cp libSolarisSerialParallel.so /usr/lib/ $ echo Driver=gnu.io.RXTXCommDriver > javax.comm.properties $ cp javax.comm.properties /usr/local/java/lib/ $ cp javax.comm.properties /usr/local/java/jre/lib/ $ cd ../rxtx-2.0-7pre1 $ ./configure $ su -c "make install" Everything was fine, i compiled a couple sample programs and try to run them, but the result is always the same: this example -> http://www.ibiblio.org/javafaq/books/javaio/ioexamples/17/PortTester.java $ javac PortTester.java $ java PortTester Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 $ It always return me this! Any tip? Light? Please :( Thanks in advance Paulo Pires From mringwal at inf.ethz.ch Tue May 18 06:28:23 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 18 May 2004 14:28:23 +0200 Subject: [Rxtx] Getting RXTX working w/ OS X In-Reply-To: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22@bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C@mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678@inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678@inf.ethz.ch> Message-ID: Hi Trent, thanks for the hint and sorry for not reading all emails.. >> why is it written javax.comm/CommPortIdentifier >> ^ ^ >> first '.' then '/' ? >> > > > CVS has the fix for javax.comm/CommPortIdentifier > > In SerialImp.c and SerialImp.h javax.comm should be replaced with > javax/comm in all cases. > > sed s/javax\\.comm/javax\\/comm/g < filename > fixed_file > > It was a sed mistake that created the problem. > I did rename "javax.comm/" to "javax/comm/" by hand and now I get the list of available serial ports. for me, next would be to use it with the classpathx-comm implementation and finish the fink packages. (the classpathx package is ready, but was of no use so far..) anybody interested in testing the fink packages after I finish them? matthias From doktorbernd at hotmail.com Tue May 18 08:46:09 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 14:46:09 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Ok, now I have changed my ROM from german Pocket PC 2002 2.20 to the english 2.20 one. (Why is compaq making this so difficult?) Anyway the only thing that changed is that I am getting the message in english :-( Maybe it helps if I give mor details, so I ran the Test programm distributed with rxtx. This is what I get when I start Test com3: Bits is 8 Stop is 1 Par is 0 Set Params Baud is 19200 Bits is 8 Par is 0 Set Params Baud is 9600 Bits is 7 Stop is 2 Par is 1 Sending 0x01 java.io.Exception: java/io/IOException: The security account database contains an internal inconsistency. in writeByte - WriteFile at gnu.io.RXTXPort.writeByte (Native method) at gnu.io.RXTXPort$SerialOutputStream.write (bytecode 48) at Test. (bytecode 488) at Test.main (bytecode 48) I still have no idea what that means. Does anyone know what the security account db is doing on Pocket PC? Bye, FReAK >From: Michal_Hobot at drq.pl >To: doktorbernd at hotmail.com >Subject: Re: rxtx on iPAQ, strange Exception >Date: Mon, 17 May 2004 18:08:51 +0200 > > >Maybe German OS version has some problems? I use original (american) >version. > >Michal > >Strange indeed. >I have iPAQ 3650, PocketPC 2002, Jeode. > >Michal > > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Michal_Hobot at drq.pl Tue May 18 10:06:25 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Tue, 18 May 2004 18:06:25 +0200 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: I found: http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 But no info about resolution. Michal From doktorbernd at hotmail.com Tue May 18 11:53:30 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Tue, 18 May 2004 17:53:30 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I also found several post asking for this problem with no solution. I also found the error at msdn (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdk40/html/cerefSystemErrors-NumericalOrder.asp) but no description of the cause for that. So I think the solution must be buried in the way my testprogramm uses the Port. Maybe someone with a wider knowledge of c++ sees the difference. but i will also have a look on this. The programm I am using is from http://www.codeproject.com/ce/irdamobile.asp I have also contacted the author of that article mybe he has an idea. FReAK >From: Michal_Hobot at drq.pl >Reply-To: Java RXTX discussion >To: Java RXTX discussion >Subject: Re: [Rxtx] rxtx on iPAQ, strange Exception >Date: Tue, 18 May 2004 18:06:25 +0200 > > >I found: >http://pocketprojects.pocketgear.com/ubbcgi/ultimatebb.cgi?ubb=get_topic;f=2;t=003864 >But no info about resolution. > >Michal > >_______________________________________________ >Rxtx mailing list >Rxtx at linuxgrrls.org >http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From erwin at navalanche.org Tue May 18 11:54:10 2004 From: erwin at navalanche.org (Erwin Gribnau) Date: Tue, 18 May 2004 19:54:10 +0200 Subject: [Rxtx] Linux running problems In-Reply-To: <20040518123718.677de12b@cyclops> References: <20040518123718.677de12b@cyclops> Message-ID: <40AA4DC2.2050600@navalanche.org> Did you add your account to the 'dialout' group? If not run as root: adduser dialout Good luck, Erwin. Paulo Pires wrote: >I'm new to serial programming and I'm on a *very big* project in which I must down/up(load) info/instructions to some hardware pieces. I want to create a completely os-independent software for this, but I really got sad when realized that Java Comm API is almost-dead :< >Well, rxtx.org was like a bunch of fresh air for my problem but soon i got stuck putting this to work over Linux. >I'm running Debian-unstable on a PIII Asus Notebook with: > > From doktorbernd at hotmail.com Wed May 19 06:46:28 2004 From: doktorbernd at hotmail.com (Doktor Bernd) Date: Wed, 19 May 2004 12:46:28 +0000 Subject: [Rxtx] rxtx on iPAQ, strange Exception Message-ID: Hi, I have got answer from Daniel (the author I mentioned before). He gave me following advice: After opening the port via "CreateFile" you have to set the settings like Baudrate, Stopbits, Parity etc. This is done via "SetCommState" On the Pocket PC you have to activate the IR mode for that port in some cases. This is done via "EscapeCommFunction(m_hPort, SETIR);" I think the SETIR is the only thing that is not done in rxtx but adding it to the code didn't solve the problem. Anyway I think it would be nice to implement a function to tell rxtx that it should active the IR mode instead of the normal call. I will now send the code to Daniel because he offered me to have a look on it. Bye, FReAK _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From lingwitt at bellsouth.net Thu May 20 19:56:52 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Thu, 20 May 2004 21:56:52 -0400 Subject: [Rxtx] Mac OS X trouble Message-ID: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> I have checkout the latest CVS code, and the gnu.io package compiles with fixes and works fine. Then I run the change package script, and it incompletely changes the files. I then manually change every occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I compile, it works. I can compile code with javax.comm. But, when I run a program, I get an error (which I have lost). Please, tell me how I can make the package javax.comm for the cvs code. gnu.io ain't going to be too useful for me. Thanks for the help. From dmarkman at mac.com Thu May 20 21:33:05 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 20 May 2004 23:33:05 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> Message-ID: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> there is XCode project to build everything there is mac os x installer to install everything what rxrtx package do you want to use? (2.1 or 2.0) if you lost you error message how we can help you? I suppose you have to put javax.comm.properties file into the $(JAVA_HOME)/lib folder you have to put jcl.jar and librxtxSerial.jnilib files into the (for example) ~/Library/Java/Extensions/ and you have to make sure that you're member of the uucp group and the folder /var/spool/uucp exists and has appropriates permissions: 775 On May 20, 2004, at 9:56 PM, Herr Witten wrote: > I have checkout the latest CVS code, and the gnu.io package compiles > with fixes and works fine. Then I run the change package script, and > it incompletely changes the files. I then manually change every > occurrence of gnu.io, gnu/io, and gnu_io with javax.comm variants. I > compile, it works. I can compile code with javax.comm. But, when I run > a program, I get an error (which I have lost). Please, tell me how I > can make the package javax.comm for the cvs code. gnu.io ain't going > to be too useful for me. Thanks for the help. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 05:04:38 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 07:04:38 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: I would like the 2.1 version, but with the javax.comm package. I figure that I can only do this with the pure unix build. I get the gnu.io package to work just fine, but whenever I change things to javax.comm, the program won't run, only compile. I'll try to get an error to you later today if you need it, but until then, thanks for any help. On 20 May 2004, at 23:33, Dmitry Markman wrote: > there is XCode project to build everything > there is mac os x installer to install everything > > what rxrtx package do you want to use? (2.1 or 2.0) > if you lost you error message how we can help you? > > I suppose you have to put javax.comm.properties file into the > $(JAVA_HOME)/lib folder > you have to put jcl.jar and librxtxSerial.jnilib files into the > (for example) ~/Library/Java/Extensions/ > and you have to make sure that you're member of the uucp group > and the folder /var/spool/uucp exists and has appropriates > permissions: 775 From mringwal at inf.ethz.ch Fri May 21 06:28:28 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri, 21 May 2004 14:28:28 +0200 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> HI On 21.05.2004, at 13:04, Herr Witten wrote: > I would like the 2.1 version, but with the javax.comm package. thats not possible or planned. as far as I get it, - the 2.0 version provides javax.comm compatibility - the 2.1 version does not provide javax.comm compatibilty, is within the gnu.io package and provides more features matthias From dmarkman at mac.com Fri May 21 07:51:15 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri, 21 May 2004 09:51:15 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: ditto On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > HI > > On 21.05.2004, at 13:04, Herr Witten wrote: > >> I would like the 2.1 version, but with the javax.comm package. > > thats not possible or planned. as far as I get it, > - the 2.0 version provides javax.comm compatibility > - the 2.1 version does not provide javax.comm compatibilty, is within > the gnu.io package and provides more features > > matthias > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Fri May 21 15:32:41 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Fri, 21 May 2004 17:32:41 -0400 Subject: [Rxtx] Mac OS X trouble In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> Message-ID: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Alright, thanks. On 21 May 2004, at 9:51, Dmitry Markman wrote: > ditto > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > >> HI >> >> On 21.05.2004, at 13:04, Herr Witten wrote: >> >>> I would like the 2.1 version, but with the javax.comm package. >> >> thats not possible or planned. as far as I get it, >> - the 2.0 version provides javax.comm compatibility >> - the 2.1 version does not provide javax.comm compatibilty, is within >> the gnu.io package and provides more features From taj at www.linux.org.uk Fri May 21 15:54:57 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 21 May 2004 22:54:57 +0100 (BST) Subject: [Rxtx] Mac OS X trouble In-Reply-To: <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <5D3647A0-AB22-11D8-8803-0003936CA678@inf.ethz.ch> <6388BA6A-AB6E-11D8-A979-000393030CE6@bellsouth.net> Message-ID: On Fri, 21 May 2004, Herr Witten wrote: > Alright, thanks. > > On 21 May 2004, at 9:51, Dmitry Markman wrote: > > > ditto > > On May 21, 2004, at 8:28 AM, Matthias Ringwald wrote: > > > >> HI > >> > >> On 21.05.2004, at 13:04, Herr Witten wrote: > >> > >>> I would like the 2.1 version, but with the javax.comm package. > >> > >> thats not possible or planned. as far as I get it, > >> - the 2.0 version provides javax.comm compatibility > >> - the 2.1 version does not provide javax.comm compatibilty, is within > >> the gnu.io package and provides more features > A full javax.comm is planned via classpathx. http://www.gnu.org/software/classpathx/ The wrapper classes are there, but rxtx needs to be added underneath. I've not had time to follow through on this but if someone would like to put some time in on it they are welcome. You have rxtx 2.0 which will work with the wrapper classes. The code should drop in but the build system will need work. I'm on the classpathx mail-list too if you would like to look at it. -- Trent Jarvi taj at www.linux.org.uk From abhishek at kenati.com Sun May 23 00:55:02 2004 From: abhishek at kenati.com (Abhishek Chouhan) Date: Sun, 23 May 2004 12:25:02 +0530 Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC Message-ID: <40B04AC6.20308@kenati.com> Hi All, I need java comm api for serial port communication on linux using J2ME / CLDC 1.1. Does anybody implemented RXTXcomm api for J2ME ? Or can I get help on how to do it? Thanks In Advance Abhishek Chouhan From taj at www.linux.org.uk Sat May 22 16:18:12 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Sat, 22 May 2004 23:18:12 +0100 (BST) Subject: [Rxtx] Rxtx Comm API for J2ME/CLDC In-Reply-To: <40B04AC6.20308@kenati.com> References: <40B04AC6.20308@kenati.com> Message-ID: On Sun, 23 May 2004, Abhishek Chouhan wrote: > Hi All, > I need java comm api for serial port communication on linux using > J2ME / CLDC 1.1. > Does anybody implemented RXTXcomm api for J2ME ? > > Or can I get help on how to do it? > >From what I can tell the J2ME native coding must be done in the J2ME by the vendor. RXTX uses the Java Native Interface (JNI) which is not supported by J2ME as far as I can tell for "Space and Security Reasons." If you know the filename you wish to open, systems usually default to 9600 8,N,1, and read/write should work. I real hack but ports are filenames on systems. You can treat them as just another File. If you see info on using the JNI with J2ME we would be interested. I just dont know of any information which would suggest this is possible. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 12:44:13 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 14:44:13 -0400 Subject: [Rxtx] Windows Install In-Reply-To: References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> Message-ID: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Hey guys, Sorry if you have this information somewhere, but I'm in a hurry and I don't have much experience with Windows. Where do the three files (2.1) listed go? RXTXcomm.jar rxtxParallel.dll rxtxSerial.dll I would normally defer to the person actually using the system, but Windows users seem as clueless as I :) Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 386 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/0ba8e028/attachment-0040.bin From lingwitt at bellsouth.net Sun May 23 13:04:32 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:04:32 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> Message-ID: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> After looking in the ming32 Makefile: RXTXComm.jar =====> C:\jdk13\lib libraries =======> C:\jdk13\bin Correct? I assume this depends on where Java is installed. On 23 May 2004, at 14:44, Herr Witten wrote: > Hey guys, > > Sorry if you have this information somewhere, but I'm in a hurry and I > don't have much experience with Windows. Where do the three files > (2.1) listed go? > > RXTXcomm.jar > rxtxParallel.dll > rxtxSerial.dll > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 506 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040523/b149a3d7/attachment-0040.bin From lingwitt at bellsouth.net Sun May 23 13:06:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 15:06:39 -0400 Subject: [Rxtx] Windows Install In-Reply-To: <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> I assume to that I would need to install cygwin. Yes? Sorry if these questions seem mundane. On 23 May 2004, at 15:04, Herr Witten wrote: > After looking in the ming32 Makefile: > > RXTXComm.jar =====> C:\jdk13\lib > libraries =======> C:\jdk13\bin > > Correct? I assume this depends on where Java is installed. > From lingwitt at bellsouth.net Sun May 23 17:50:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 19:50:31 -0400 Subject: [Rxtx] Bundled Message-ID: Is it possible to bundle the libraries and jar file with an application that uses them? This would greatly simplify my situation. I realize that this is plate dependent, but having to install RxTx might be too difficult depending on administrative capabilities. Should I simply set the install directories to relative paths which are the same in the jar? Thanks. From lingwitt at bellsouth.net Sun May 23 18:00:31 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 20:00:31 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <5F7255DE-AD15-11D8-AF1C-000393030CE6@bellsouth.net> platform dependent On 23 May 2004, at 19:50, Herr Witten wrote: > plate dependent From mringwal at inf.ethz.ch Sun May 23 13:13:21 2004 From: mringwal at inf.ethz.ch (mringwal at inf.ethz.ch) Date: 23 May 2004 21:13:21 +0200 Subject: [Rxtx] (no subject) In-Reply-To: Message-ID: References: <39765744-A5A7-11D8-9F0A-000A95E9CD22 at bravo5.org> <0EDF7083-A5BF-11D8-A3F4-000A95DA5E9C at mac.com> <1DC04804-A7FA-11D8-8F60-0003936CA678 at inf.ethz.ch> <715E4A22-A83F-11D8-8F60-0003936CA678 at inf.ethz.ch> <9D44E72A-AAD6-11D8-952D-000A95DA5E9C at mac.com> <77D95F54-AAFB-11D8-8803-0003936CA678 at inf.ethz.ch> <7FAB38A8-AB02-11D8-8803-0003936CA678 at inf.ethz.ch> <12BBFDAE-AB15-11D8-8803-0003936CA678 at inf.ethz.ch> <7A92DBFB-AB2D-11D8-952D-000A95DA5E9C at mac.com> <3C7D2CDE-AB2E-11D8-8803-0003936CA678 at inf.ethz.ch> <422C8866-AB2F-11D8-952D-000A95DA5E9C at mac.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4473A8A8-AC03-11D8-A00A-00039305C076 at inf.ethz.ch> Content-Transfer-Encoding: 7bit Cc: Java RXTX discussion From: Matthias Ringwald Subject: Re: [Rxtx] Getting RXTX working w/ OS X Date: Sat, 22 May 2004 17:18:24 +0200 To: Dmitry Markman , Trent Jarvi X-Mailer: Apple Mail (2.613) Return-Path: mringwal at inf.ethz.ch X-OriginalArrivalTime: 23 May 2004 19:12:59.0767 (UTC) FILETIME=[F65EF870:01C440F9] so, to also keep others up-to-date: rxtx-2.0 compiles on mac os x using gnu tools only. remaining questions: 1. where to put RXTXcomm.jar and librxtxSerial.jnilib ? 2. how to deal with /var/spool/ and uucp group membership to 1. I can run the TestPost application if I put both files into - /Library/Java/Extension (system-wide) or into - ~/Library/Java/Extension (user install) in general I'd prefer the system-wide installation. but this might be related to the second question. to 2. let me ask in general, how is this done on other unix systems, like linux? are there security concerns, if uucp is read/write to all users? are there packages that do install rxtx automatically without asking? sure, we could put the user installing the package into the group uucp (using root rights) but that would prevent other users running java software using the serial ports. opinions? dmitry, you asked if comm.jar needs to be deleted for 2.1 version. why do you think, comm.jar would disturb 2.1? finally getting it done,.. matthias From taj at www.linux.org.uk Sun May 23 20:12:35 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:12:35 +0100 (BST) Subject: [Rxtx] Windows Install In-Reply-To: <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> References: <210FE7F6-AACA-11D8-A587-000393030CE6@bellsouth.net> <924B5BA4-AAD7-11D8-952D-000A95DA5E9C@mac.com> <2FB87344-ACE9-11D8-8A24-000393030CE6@bellsouth.net> <06248A2C-ACEC-11D8-B680-000393030CE6@bellsouth.net> <51BA2079-ACEC-11D8-B680-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I assume to that I would need to install cygwin. Yes? > > Sorry if these questions seem mundane. > > On 23 May 2004, at 15:04, Herr Witten wrote: > > > After looking in the ming32 Makefile: > > > > RXTXComm.jar =====> C:\jdk13\lib lib\ext if its available. > > libraries =======> C:\jdk13\bin That should work. > > > > Correct? I assume this depends on where Java is installed. > > Yep. You ask if cygwin in needed in another email. Mingw32 or lcc (not tested in a long time) are the only tools the Makefiles currently support on w32. GNU cross compiling environments also work. The cygwin tools grep and sed are used for building but nothing is needed once the dll is built. IE rxtx does not link to cygwin.dll. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Sun May 23 20:24:49 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Sun, 23 May 2004 22:24:49 -0400 Subject: [Rxtx] (no subject) In-Reply-To: References: Message-ID: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> I have had them both side by side with no side effects. On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > why do you think, comm.jar would disturb 2.1? From dmarkman at mac.com Sun May 23 20:27:24 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Sun, 23 May 2004 22:27:24 -0400 Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: yes you're probably right I just like to keep folders like ext as clean as possible (I mean on MAC OS X) On May 23, 2004, at 10:24 PM, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > >> dmitry, you asked if comm.jar needs to be deleted for 2.1 version. >> why do you think, comm.jar would disturb 2.1? > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From taj at www.linux.org.uk Sun May 23 20:33:39 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 24 May 2004 03:33:39 +0100 (BST) Subject: [Rxtx] (no subject) In-Reply-To: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> References: <8841C87E-AD29-11D8-AC4E-000393030CE6@bellsouth.net> Message-ID: On Sun, 23 May 2004, Herr Witten wrote: > I have had them both side by side with no side effects. > > On 23 May 2004, at 15:13, mringwal at inf.ethz.ch wrote: > > > dmitry, you asked if comm.jar needs to be deleted for 2.1 version. > > why do you think, comm.jar would disturb 2.1? > Part of the problem may be rxtx too. comm.jar just wants to System.load("rxtxSerial"); The filename is the same in rxtx 2.0 and 2.1. What you get depends upon what you last installed. Its a symbolic link to librxtxSerial-someversion.jnilib (this may be a mix of Mac OS LinuX conventions here but you get the idea). So its not really possible, as things are, to have rxtx 2.0 and rxtx 2.1 installed in the same JRE. This leads to a common problem where people have rxtx 2.1 installed with comm.jar and then import "javax.comm.*;" in their code. -- Trent Jarvi taj at www.linux.org.uk From moritz.gmelin at gmx.de Mon May 24 07:56:53 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 15:56:53 +0200 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M. Am 24.05.2004 um 01:50 schrieb Herr Witten: > Is it possible to bundle the libraries and jar file with an > application that uses them? This would greatly simplify my situation. > I realize that this is plate dependent, but having to install RxTx > might be too difficult depending on administrative capabilities. > > Should I simply set the install directories to relative paths which > are the same in the jar? Thanks. > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > From lingwitt at bellsouth.net Mon May 24 09:02:11 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 11:02:11 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1095 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/ff0f2bbb/attachment-0040.bin From moritz.gmelin at gmx.de Mon May 24 09:08:34 2004 From: moritz.gmelin at gmx.de (Moritz Gmelin) Date: Mon, 24 May 2004 17:08:34 +0200 Subject: [Rxtx] Bundled In-Reply-To: <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> <55DAA48E-AD93-11D8-9407-000393030CE6@bellsouth.net> Message-ID: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. >> >> M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1417 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fb6feaaf/attachment-0040.bin From ricardo.trindade at emation.pt Mon May 24 11:48:30 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Mon, 24 May 2004 18:48:30 +0100 Subject: [Rxtx] Bundled In-Reply-To: <3A15B139-AD94-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: Shouldn't this go into the main distribution ? -----Mensagem original----- De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin Enviada: segunda-feira, 24 de Maio de 2004 16:09 Para: Java RXTX discussion Assunto: Re: [Rxtx] Bundled Oh yes, There are some occurences of System.loadLibrary in the rxtx classes that have to be removed. M. Am 24.05.2004 um 17:02 schrieb Herr Witten: Thanks for the reply. I incorporated gnu/io/LibLoader.class librxtxSerial.jnilib rxtxParallel.dll rxtxSerial.dll Into the existing RXTXComm.jar file and added this line to my Main program: LibLoader libLoader1 = new LibLoader("rxtxSerial"); But I get this error: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path It may be something simple, but I'll have to look into it later today. If you have any ideas, please send them my way. Thanks. On 24 May 2004, at 9:56, Moritz Gmelin wrote: Hi, I had mad a suggestion a while ago how to include the native part into a distributable JAR-Archive. I had even included the Java-Class that loads a native lib from within the JAR-Archive. I don't know if this list is archived. Search for LibLoader.java or send me an eMail, and I'll send it to you. M._______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/a0e85799/attachment-0040.html From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0080.bin From lingwitt at bellsouth.net Mon May 24 13:08:20 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 15:08:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Well, I put everything into my app's jar file and it should now work between Mac OS X and Windows as a single unit without installing anything. This isn't the cleanest solution, but it's cool that it works. Excellent stuff. On 24 May 2004, at 13:48, Ricardo Trindade wrote: > Shouldn't this go into the main distribution ? > -----Mensagem original----- > De: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]Em > nome de Moritz Gmelin > Enviada: segunda-feira, 24 de Maio de 2004 16:09 > Para: Java RXTX discussion > Assunto: Re: [Rxtx] Bundled > > Oh yes, > > There are some occurences of System.loadLibrary in the rxtx classes > that have to be removed. > > M. > > Am 24.05.2004 um 17:02 schrieb Herr Witten: > > > Thanks for the reply. > > I incorporated > > gnu/io/LibLoader.class > librxtxSerial.jnilib > rxtxParallel.dll > rxtxSerial.dll > > Into the existing RXTXComm.jar file and added this line to my Main > program: > > LibLoader libLoader1 = new LibLoader("rxtxSerial"); > > But I get this error: > > java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path > thrown while loading gnu.io.RXTXCommDriver > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > rxtxSerial in java.library.path > > It may be something simple, but I'll have to look into it later today. > If you have any ideas, please send them my way. Thanks. > > On 24 May 2004, at 9:56, Moritz Gmelin wrote: > > > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M._______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2360 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/28ef459d/attachment-0081.bin From lingwitt at bellsouth.net Mon May 24 14:09:12 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 16:09:12 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <397BD3CC-ADBE-11D8-AF91-000393030CE6@bellsouth.net> This is slightly off topic: I have a self-contained jar created by simply merging the contents of RXTXcomm.jar file and the native libraries with my application's jar file. I then tried to clean things up by not simply merging the RXTXcomm.jar itself and then adding a "Class-Path: RXTXcomm.jar" header to the manifest. However, that header specifies the RXTXcomm.jar file in the same directory as the application, not the one in the application. How can I reference the one in the application? Thanks. Email off-list might be better. On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. > > On 24 May 2004, at 13:48, Ricardo Trindade wrote: > >> Shouldn't this go into the main distribution ? >> -----Mensagem original----- >> De: rxtx-bounces at linuxgrrls.org >> [mailto:rxtx-bounces at linuxgrrls.org]Em nome de Moritz Gmelin >> Enviada: segunda-feira, 24 de Maio de 2004 16:09 >> Para: Java RXTX discussion >> Assunto: Re: [Rxtx] Bundled >> >> Oh yes, >> >> There are some occurences of System.loadLibrary in the rxtx classes >> that have to be removed. >> >> M. >> >> Am 24.05.2004 um 17:02 schrieb Herr Witten: >> >> >> Thanks for the reply. >> >> I incorporated >> >> gnu/io/LibLoader.class >> librxtxSerial.jnilib >> rxtxParallel.dll >> rxtxSerial.dll >> >> Into the existing RXTXComm.jar file and added this line to my Main >> program: >> >> LibLoader libLoader1 = new LibLoader("rxtxSerial"); >> >> But I get this error: >> >> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path >> thrown while loading gnu.io.RXTXCommDriver >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> rxtxSerial in java.library.path >> >> It may be something simple, but I'll have to look into it later >> today. If you have any ideas, please send them my way. Thanks. >> >> On 24 May 2004, at 9:56, Moritz Gmelin wrote: >> >> >> Hi, >> >> I had mad a suggestion a while ago how to include the native part >> into a distributable JAR-Archive. >> I had even included the Java-Class that loads a native lib from >> within the JAR-Archive. I don't know if this list is archived. Search >> for LibLoader.java or send me an eMail, and I'll send it to you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2668 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/58df690a/attachment-0040.bin From dmarkman at mac.com Mon May 24 08:08:07 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Mon, 24 May 2004 10:08:07 -0400 Subject: [Rxtx] Bundled In-Reply-To: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> References: <36793702-AD8A-11D8-B702-000A95BC7E8A@gmx.de> Message-ID: I repost that Moritz's message > I just spent a day figuring out how to make an application > distributable in a JAR-Archive that uses native libs (like RXTX > requires). > Well, all one needs to do is to write the native lib into some file an > do a System.load (PATHNAME) on that file to be able to use the native > methods in that library. > I included a class gnu.io.LibLoader with the code to demonstrate how > it works. I had to remove all occurences of System.loadLibrary > ("rxtxSerial") of course. > That way, you can just add librxtxSerial.so, librxtxSerial.jnilib and > rxtxSerial.dll to your RXTXcomm.jar and have all the stuff you need on > hand without worriing of the correct version and copying of native > libs onto the system. > Included is that LibLoader class and a RXTXBundle.jar file, that > contains RXTXcomm.jar and the native stuff for linux and MacOS X > (sorry, couldn't get MinGW to work in VirtualPC). > I used rxtx-2.1-7pre17 to build. -------------- next part -------------- A non-text attachment was scrubbed... Name: RXTXBundle.jar Type: application/octet-stream Size: 135133 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0008.obj -------------- next part -------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: LibLoader.java Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/631bfa9f/attachment-0008.pl -------------- next part -------------- On May 24, 2004, at 9:56 AM, Moritz Gmelin wrote: > Hi, > > I had mad a suggestion a while ago how to include the native part into > a distributable JAR-Archive. > I had even included the Java-Class that loads a native lib from within > the JAR-Archive. I don't know if this list is archived. Search for > LibLoader.java or send me an eMail, and I'll send it to you. > > M. > > Am 24.05.2004 um 01:50 schrieb Herr Witten: > >> Is it possible to bundle the libraries and jar file with an >> application that uses them? This would greatly simplify my situation. >> I realize that this is plate dependent, but having to install RxTx >> might be too difficult depending on administrative capabilities. >> >> Should I simply set the install directories to relative paths which >> are the same in the jar? Thanks. >> >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx >> > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From lingwitt at bellsouth.net Mon May 24 17:47:39 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Mon, 24 May 2004 19:47:39 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: It works on Mac OS X, and I finally got the chance to test it on Windows: When I run the jar application, I get Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load at java.lang.ClassLoader.loadLibrary0 at java.lang.ClassLoader.loadLibrary at java.lang.Runtime.load0 at java.lang.System.load at gnu.io.LibLoader.loadCommLib at gnu.io.LibLoader. at the main method of my application. I added this line to the LibLoader class: System.out.println("Trying to load: " + libName); and got this: Trying to load rxtxSerial.dll which is exactly what it is supposed to try to load. The kicker is this: I am using the code from the RXTXcomm.jar file that goes with the Mac OS X build. Is that the problem? On 24 May 2004, at 15:08, Herr Witten wrote: > Well, I put everything into my app's jar file and it should now work > between Mac OS X and Windows as a single unit without installing > anything. This isn't the cleanest solution, but it's cool that it > works. Excellent stuff. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1272 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040524/fded6e70/attachment-0031.bin From taj at www.linux.org.uk Mon May 24 19:53:52 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 25 May 2004 02:53:52 +0100 (BST) Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: Have you verified that the library loads in the old fashion? This error message is new to me. I wonder if the system.library.path needs to be manipulated. I recall the current directory being in the path with w32 but this is not something I've seen documented. If you have a patch, I can take a look at this on Linux too. On Mon, 24 May 2004, Herr Witten wrote: > It works on Mac OS X, and I finally got the chance to test it on > Windows: > > When I run the jar application, I get > > Can't find dependent libraries > at java.lang.ClassLoader$NativeLibrary.load > at java.lang.ClassLoader.loadLibrary0 > at java.lang.ClassLoader.loadLibrary > at java.lang.Runtime.load0 > at java.lang.System.load > at gnu.io.LibLoader.loadCommLib wrong> > at gnu.io.LibLoader. > at the main method of my application. > > I added this line to the LibLoader class: > > System.out.println("Trying to load: " + libName); > > and got this: > > Trying to load rxtxSerial.dll > > which is exactly what it is supposed to try to load. The kicker is > this: I am using the code from the RXTXcomm.jar file that goes with the > Mac OS X build. Is that the problem? > > On 24 May 2004, at 15:08, Herr Witten wrote: > > > Well, I put everything into my app's jar file and it should now work > > between Mac OS X and Windows as a single unit without installing > > anything. This isn't the cleanest solution, but it's cool that it > > works. Excellent stuff. -- Trent Jarvi taj at www.linux.org.uk From lingwitt at bellsouth.net Tue May 25 08:12:05 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:12:05 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: Message-ID: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> The java.library.path is virtually the same on both Mac OS X and Windows; they both include the current directory (the jar file) with "." I sent the patch for the changes I made to LibLoader. Its nothing to fancy. If that's not what you want, let me know. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 524 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/eda644e7/attachment-0008.obj -------------- next part -------------- On 24 May 2004, at 21:53, Trent Jarvi wrote: > > Have you verified that the library loads in the old fashion? This > error > message is new to me. I wonder if the system.library.path needs to be > manipulated. I recall the current directory being in the path with w32 > but this is not something I've seen documented. > > If you have a patch, I can take a look at this on Linux too. From lingwitt at bellsouth.net Tue May 25 08:46:57 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 10:46:57 -0400 Subject: [Rxtx] Bundled In-Reply-To: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> Message-ID: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> I took a closer look at the LibLoader class and found that it actually copies the library to be loaded and then loads it with an absolute path. The temporary file it was creating, however, was being named "lib", so I replaced that literal with libName in the hope that Windows won't load things without .dll. I have sent the patch to the original, so it includes the changes of the other diff. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1084 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/ae2c373d/attachment-0008.obj -------------- next part -------------- On 25 May 2004, at 10:12, Herr Witten wrote: > The java.library.path is virtually the same on both Mac OS X and > Windows; they both include the current directory (the jar file) with > "." I sent the patch for the changes I made to LibLoader. Its nothing > to fancy. If that's not what you want, let me know. > > > > On 24 May 2004, at 21:53, Trent Jarvi wrote: > >> >> Have you verified that the library loads in the old fashion? This >> error >> message is new to me. I wonder if the system.library.path needs to be >> manipulated. I recall the current directory being in the path with >> w32 >> but this is not something I've seen documented. >> >> If you have a patch, I can take a look at this on Linux too. > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From lingwitt at bellsouth.net Tue May 25 09:10:28 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 11:10:28 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: I spoke too soon. The temporary file has numbers stuck on the end, so I had to make some other changes. This should do it. -------------- next part -------------- A non-text attachment was scrubbed... Name: LibLoader.java.diff Type: application/octet-stream Size: 1283 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040525/3b903b0b/attachment-0008.obj -------------- next part -------------- On 25 May 2004, at 10:46, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > From lingwitt at bellsouth.net Tue May 25 10:41:54 2004 From: lingwitt at bellsouth.net (Herr Witten) Date: Tue, 25 May 2004 12:41:54 -0400 Subject: [Rxtx] Bundled In-Reply-To: References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <6DDBF00C-AE6A-11D8-B32D-000393030CE6@bellsouth.net> Yes! I got someone to try it on Windows, and indeed it works with my patch. On 25 May 2004, at 11:10, Herr Witten wrote: > I spoke too soon. The temporary file has numbers stuck on the end, so > I had to make some other changes. This should do it. > > > > On 25 May 2004, at 10:46, Herr Witten wrote: > >> I took a closer look at the LibLoader class and found that it >> actually copies the library to be loaded and then loads it with an >> absolute path. The temporary file it was creating, however, was being >> named "lib", so I replaced that literal with libName in the hope that >> Windows won't load things without .dll. I have sent the patch to the >> original, so it includes the changes of the other diff. >> >> From dmarkman at mac.com Tue May 25 12:51:20 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Tue, 25 May 2004 14:51:20 -0400 Subject: [Rxtx] Bundled In-Reply-To: <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> References: <80A73EDF-AE55-11D8-819E-000393030CE6@bellsouth.net> <5F2128A4-AE5A-11D8-B32D-000393030CE6@bellsouth.net> Message-ID: <82BE118D-AE7C-11D8-B454-000A95DA5E9C@mac.com> why not to use System.load function so you don't need to care about library name conventions. On May 25, 2004, at 10:46 AM, Herr Witten wrote: > I took a closer look at the LibLoader class and found that it actually > copies the library to be loaded and then loads it with an absolute > path. The temporary file it was creating, however, was being named > "lib", so I replaced that literal with libName in the hope that > Windows won't load things without .dll. I have sent the patch to the > original, so it includes the changes of the other diff. > > > > On 25 May 2004, at 10:12, Herr Witten wrote: > >> The java.library.path is virtually the same on both Mac OS X and >> Windows; they both include the current directory (the jar file) with >> "." I sent the patch for the changes I made to LibLoader. Its nothing >> to fancy. If that's not what you want, let me know. >> >> >> >> On 24 May 2004, at 21:53, Trent Jarvi wrote: >> >>> >>> Have you verified that the library loads in the old fashion? This >>> error >>> message is new to me. I wonder if the system.library.path needs to >>> be >>> manipulated. I recall the current directory being in the path with >>> w32 >>> but this is not something I've seen documented. >>> >>> If you have a patch, I can take a look at this on Linux too. >> _______________________________________________ >> Rxtx mailing list >> Rxtx at linuxgrrls.org >> http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman From lingwitt at bellsouth.net Tue May 25 15:16:55 2004 From: lingwitt at be